Pass an explicit empty list to OrderedSet()

This commit is contained in:
Alexander Hess 2026-12-01 14:50:16 +01:00
commit 66265c8808
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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"]),