Make mypy happy

This commit is contained in:
Darren Eberly
2022-08-13 00:49:06 -04:00
parent 3c94bc7f16
commit 995a6e2ff0

View File

@@ -145,8 +145,8 @@ def parse(file: Path) -> TiledMap:
if raw_map.attrib.get("class") is not None:
map_.class_ = raw_map.attrib["class"]
_parallax_origin_x = 0
_parallax_origin_y = 0
_parallax_origin_x = 0.0
_parallax_origin_y = 0.0
if raw_map.attrib.get("parallaxoriginx") is not None:
_parallax_origin_x = float(raw_map.attrib["parallaxoriginx"])