mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-30 14:50:09 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
11596c4cd8
commit
868a417afc
19 changed files with 137 additions and 148 deletions
|
@ -159,7 +159,7 @@ def road_features(
|
|||
|
||||
grid: Grid = Grid()
|
||||
|
||||
for i in range(len(types)):
|
||||
for i, type_ in enumerate(types):
|
||||
previous: Optional[OSMNode] = None
|
||||
|
||||
for j in range(len(features) + 1):
|
||||
|
@ -167,7 +167,7 @@ def road_features(
|
|||
|
||||
if previous:
|
||||
tags: dict[str, str] = dict(features[j - 1])
|
||||
tags |= types[i]
|
||||
tags |= type_
|
||||
way: OSMWay = OSMWay(
|
||||
tags, i * (len(features) + 1) + j, [previous, node]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue