mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-17 08:16:09 +01:00
Re-run black formatting
This commit is contained in:
@@ -192,7 +192,7 @@ def _parse_tile(
|
|||||||
gid=gid,
|
gid=gid,
|
||||||
new_tileset=new_tileset,
|
new_tileset=new_tileset,
|
||||||
new_tileset_path=new_tileset_path,
|
new_tileset_path=new_tileset_path,
|
||||||
**_parse_common(raw_object).__dict__
|
**_parse_common(raw_object).__dict__,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,10 @@ from pytiled_parser.util import parse_color
|
|||||||
|
|
||||||
|
|
||||||
def parse(raw_properties: etree.Element) -> Properties:
|
def parse(raw_properties: etree.Element) -> Properties:
|
||||||
|
|
||||||
final: Properties = {}
|
final: Properties = {}
|
||||||
value: Property
|
value: Property
|
||||||
|
|
||||||
for raw_property in raw_properties.findall("property"):
|
for raw_property in raw_properties.findall("property"):
|
||||||
|
|
||||||
type_ = raw_property.attrib.get("type")
|
type_ = raw_property.attrib.get("type")
|
||||||
|
|
||||||
if "value" not in raw_property.attrib:
|
if "value" not in raw_property.attrib:
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ def _parse_tile(
|
|||||||
gid=int(raw_object.attrib["gid"]),
|
gid=int(raw_object.attrib["gid"]),
|
||||||
new_tileset=new_tileset,
|
new_tileset=new_tileset,
|
||||||
new_tileset_path=new_tileset_path,
|
new_tileset_path=new_tileset_path,
|
||||||
**_parse_common(raw_object).__dict__
|
**_parse_common(raw_object).__dict__,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user