1313
1414@define
1515class Node :
16- """Represents an OSM node (point) with coodrinates and attributes."""
16+ """Represents an OSM node (point) with coordinates and attributes."""
1717
1818 id : str
1919 lat : float
@@ -168,7 +168,7 @@ def way_coordinates(self, way: Way, *, as_geographic: bool = False) -> list[Vect
168168 ]
169169
170170
171- def _parse_nodes (root : ET .Element [ str ] ) -> dict [str , Node ]:
171+ def _parse_nodes (root : ET .Element ) -> dict [str , Node ]:
172172 output : dict [str , Node ] = {}
173173 for node_elem in root .findall ("node" ):
174174 node_id = node_elem .get ("id" )
@@ -205,7 +205,7 @@ def _parse_nodes(root: ET.Element[str]) -> dict[str, Node]:
205205 return output
206206
207207
208- def _parse_ways (root : ET .Element [ str ] ) -> dict [str , Way ]:
208+ def _parse_ways (root : ET .Element ) -> dict [str , Way ]:
209209 output : dict [str , Way ] = {}
210210 for way_elem in root .findall ("way" ):
211211 way_id = way_elem .get ("id" )
@@ -220,7 +220,7 @@ def _parse_ways(root: ET.Element[str]) -> dict[str, Way]:
220220 return output
221221
222222
223- def _parse_relations (root : ET .Element [ str ] ) -> dict [str , Relation ]:
223+ def _parse_relations (root : ET .Element ) -> dict [str , Relation ]:
224224 output : dict [str , Relation ] = {}
225225 for relation_elem in root .findall ("relation" ):
226226 relation_id = relation_elem .get ("id" )
0 commit comments