From 2cb43bbc9f0c875f66f9f5fb3eca6e4503c8c74f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 10 Jul 2023 12:18:58 +0200 Subject: [PATCH] Fix assignment instead of type hint --- birdvisu/providers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/birdvisu/providers.py b/birdvisu/providers.py index ec96706..e9c04af 100644 --- a/birdvisu/providers.py +++ b/birdvisu/providers.py @@ -256,8 +256,7 @@ class OspfFileTopologyParser: # Same as for networks: we must create the edges in bulk at the end, # since there may be multiedges. 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: tag, *det = line.split() if tag in ['distance', 'unreachable']: continue