Add pyright as a second type checker #14
1 changed files with 1 additions and 1 deletions
Pass an explicit empty list to OrderedSet()
commit
66265c8808
|
|
@ -237,7 +237,7 @@ class Path(meta.Base):
|
|||
# get from A to B. As a step's "start_location" may equal the previous step's
|
||||
# "end_location", we use an `OrderedSet` to find the unique latitude-longitude
|
||||
# pairs that make up the path from `.first_address` to `.second_address`.
|
||||
steps: ordered_set.OrderedSet[tuple[float, float]] = ordered_set.OrderedSet()
|
||||
steps: ordered_set.OrderedSet[tuple[float, float]] = ordered_set.OrderedSet([])
|
||||
for step in route["steps"]:
|
||||
steps.add(
|
||||
(step["start_location"]["lat"], step["start_location"]["lng"]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue