mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-07 03:41:20 +01:00
Formatting fixes
This commit is contained in:
@@ -50,7 +50,7 @@ RawTile = TypedDict(
|
|||||||
"x": int,
|
"x": int,
|
||||||
"y": int,
|
"y": int,
|
||||||
"width": int,
|
"width": int,
|
||||||
"height": int
|
"height": int,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
RawTile.__doc__ = """
|
RawTile.__doc__ = """
|
||||||
@@ -215,7 +215,7 @@ def _parse_tile(raw_tile: RawTile, external_path: Optional[Path] = None) -> Tile
|
|||||||
|
|
||||||
if raw_tile.get("x") is not None:
|
if raw_tile.get("x") is not None:
|
||||||
tile.x = raw_tile["x"]
|
tile.x = raw_tile["x"]
|
||||||
|
|
||||||
if raw_tile.get("y") is not None:
|
if raw_tile.get("y") is not None:
|
||||||
tile.y = raw_tile["y"]
|
tile.y = raw_tile["y"]
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ def _parse_tile(raw_tile: etree.Element, external_path: Optional[Path] = None) -
|
|||||||
|
|
||||||
if raw_tile.attrib.get("width") is not None:
|
if raw_tile.attrib.get("width") is not None:
|
||||||
tile.width = int(raw_tile.attrib["width"])
|
tile.width = int(raw_tile.attrib["width"])
|
||||||
|
|
||||||
if raw_tile.attrib.get("height") is not None:
|
if raw_tile.attrib.get("height") is not None:
|
||||||
tile.height = int(raw_tile.attrib["height"])
|
tile.height = int(raw_tile.attrib["height"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user