Fix assignment instead of type hint

styling
LEdoian 1 year ago
parent f7f064147c
commit 2cb43bbc9f

@ -256,8 +256,7 @@ class OspfFileTopologyParser:
# Same as for networks: we must create the edges in bulk at the end, # Same as for networks: we must create the edges in bulk at the end,
# since there may be multiedges. # since there may be multiedges.
future_edges: dict[tuple[VertexID, int, MetricType, bool], int] = defaultdict(lambda: 0) future_edges: dict[tuple[VertexID, int, MetricType, bool], int] = defaultdict(lambda: 0)
# mypy 1.3.0 wtf. future_transit_networks: dict[tuple[str, int], int] = defaultdict(lambda: 0)
future_transit_networks = dict[tuple[str, int], int] = defaultdict(lambda: 0)
for line, chld in syntree: for line, chld in syntree:
tag, *det = line.split() tag, *det = line.split()
if tag in ['distance', 'unreachable']: continue if tag in ['distance', 'unreachable']: continue

Loading…
Cancel
Save