mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
Formatting fixes
This commit is contained in:
@@ -50,7 +50,7 @@ RawTile = TypedDict(
|
||||
"x": int,
|
||||
"y": int,
|
||||
"width": int,
|
||||
"height": int
|
||||
"height": int,
|
||||
},
|
||||
)
|
||||
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:
|
||||
tile.x = raw_tile["x"]
|
||||
|
||||
|
||||
if raw_tile.get("y") is not None:
|
||||
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:
|
||||
tile.width = int(raw_tile.attrib["width"])
|
||||
|
||||
|
||||
if raw_tile.attrib.get("height") is not None:
|
||||
tile.height = int(raw_tile.attrib["height"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user