Formatting fixes

This commit is contained in:
Darren Eberly
2022-08-13 00:17:04 -04:00
parent 58deab5f78
commit 83ee2c420a
2 changed files with 3 additions and 3 deletions

View File

@@ -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"]

View File

@@ -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"])