Skip to content

Commit 34c7850

Browse files
committed
fix: resolve mistakes
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
1 parent 25fbcf6 commit 34c7850

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

t4_devkit/lanelet/parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@define
1515
class 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")

t4_devkit/viewer/lanelet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def render_ways(parser: LaneletParser, root_entity: str) -> None:
155155
elif "curbstone" == way_type:
156156
color = LANELET_COLORS["curbstone"]
157157
element_type = "road_border/curbstone"
158-
elif "road_border" == "subtype":
158+
elif "road_border" == subtype:
159159
color = LANELET_COLORS["road_border"]
160160
element_type = "road_border/road_border"
161161
else:

0 commit comments

Comments
 (0)