summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2024-04-25 13:25:26 +0100
committerGitHub <noreply@github.com>2024-04-25 12:25:26 +0000
commit646cb6ff2412bfc5180b5d748b95dbe6ef790a0b (patch)
treed3a60500fa1565044f2a94a07b1d8d86273dcd14 /synapse/storage
parentMerge branch 'master' into develop (diff)
downloadsynapse-646cb6ff2412bfc5180b5d748b95dbe6ef790a0b.tar.xz
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.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/databases/main/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py
index 1e731d56bd..990698aa5c 100644
--- a/synapse/storage/databases/main/events.py
+++ b/synapse/storage/databases/main/events.py
@@ -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()