summary refs log tree commit diff
path: root/tests/state
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-06-15 11:49:58 +0100
committerGitHub <noreply@github.com>2022-06-15 11:49:58 +0100
commita4ae1406d15280156510d0a07e85de8203ae1e6c (patch)
treeb168b965f2706488c1cdbbfb7f56f946c982c7c0 /tests/state
parentMerge branch 'master' into develop (diff)
downloadsynapse-a4ae1406d15280156510d0a07e85de8203ae1e6c.tar.xz
Fix typechecks against twisted trunk (#13061)
Diffstat (limited to 'tests/state')
-rw-r--r--tests/state/test_v2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/state/test_v2.py b/tests/state/test_v2.py
index 78b83d97b6..2e3f2318d9 100644
--- a/tests/state/test_v2.py
+++ b/tests/state/test_v2.py
@@ -495,6 +495,7 @@ class StateTestCase(unittest.TestCase):
 
             prev_events = list(graph[node_id])
 
+            state_before: StateMap[str]
             if len(prev_events) == 0:
                 state_before = {}
             elif len(prev_events) == 1: