Add type annotation to visited_chains (#17125)

This should fix CI on `develop`. Broke in
https://github.com/element-hq/synapse/commit/0fe9e1f7dafa80f3e02762f7ae75cefee5b3316c,
presumably due to a `mypy` dependency upgrade.
This commit is contained in:
Andrew Morgan
2024-04-25 13:25:26 +01:00
committed by GitHub
parent 0fe9e1f7da
commit 646cb6ff24
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Fix type annotation for `visited_chains` after `mypy` upgrade.
+1 -1
View File
@@ -2454,7 +2454,7 @@ class _LinkMap:
return target_seq <= src_seq
# We have to graph traverse the links to check for indirect paths.
visited_chains = collections.Counter()
visited_chains: Dict[int, int] = collections.Counter()
search = [(src_chain, src_seq)]
while search:
chain, seq = search.pop()