mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 08:40:11 +02:00
Reformat with Black.
This commit is contained in:
parent
9613ec2cd4
commit
070ed05c8c
12 changed files with 157 additions and 117 deletions
|
@ -254,8 +254,12 @@ class ShapeSpecification:
|
|||
use_outline = structure["outline"]
|
||||
|
||||
return cls(
|
||||
shape, color, offset, flip_horizontally, flip_vertically,
|
||||
use_outline
|
||||
shape,
|
||||
color,
|
||||
offset,
|
||||
flip_horizontally,
|
||||
flip_vertically,
|
||||
use_outline,
|
||||
)
|
||||
|
||||
def is_default(self) -> bool:
|
||||
|
@ -424,10 +428,9 @@ class Icon:
|
|||
)
|
||||
|
||||
def __lt__(self, other) -> bool:
|
||||
return (
|
||||
"".join([x.shape.id_ for x in self.shape_specifications])
|
||||
< "".join([x.shape.id_ for x in other.shape_specifications])
|
||||
)
|
||||
return "".join(
|
||||
[x.shape.id_ for x in self.shape_specifications]
|
||||
) < "".join([x.shape.id_ for x in other.shape_specifications])
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue