We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
visited_chains
1 parent 0fe9e1f commit 646cb6fCopy full SHA for 646cb6f
2 files changed
changelog.d/17125.misc
@@ -0,0 +1 @@
1
+Fix type annotation for `visited_chains` after `mypy` upgrade.
synapse/storage/databases/main/events.py
@@ -2454,7 +2454,7 @@ def exists_path_from(
2454
return target_seq <= src_seq
2455
2456
# We have to graph traverse the links to check for indirect paths.
2457
- visited_chains = collections.Counter()
+ visited_chains: Dict[int, int] = collections.Counter()
2458
search = [(src_chain, src_seq)]
2459
while search:
2460
chain, seq = search.pop()
0 commit comments