mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add type annotation to visited_chains
(#17125)
This should fix CI on `develop`. Broke in
0fe9e1f7da
,
presumably due to a `mypy` dependency upgrade.
This commit is contained in:
parent
0fe9e1f7da
commit
646cb6ff24
1
changelog.d/17125.misc
Normal file
1
changelog.d/17125.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix type annotation for `visited_chains` after `mypy` upgrade.
|
@ -2454,7 +2454,7 @@ class _LinkMap:
|
|||||||
return target_seq <= src_seq
|
return target_seq <= src_seq
|
||||||
|
|
||||||
# We have to graph traverse the links to check for indirect paths.
|
# 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)]
|
search = [(src_chain, src_seq)]
|
||||||
while search:
|
while search:
|
||||||
chain, seq = search.pop()
|
chain, seq = search.pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user