summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2023-05-15 17:40:10 -0500
committerEric Eastwood <contact@ericeastwood.com>2023-05-15 17:40:10 -0500
commit55b08534a412f462251753f67308405ca4d02ebe (patch)
tree934801a2d6a7c365e56675e7bce3eadda547073d /tests/test_state.py
parentExport `run_as_background_process` from the module API (#15577) (diff)
downloadsynapse-55b08534a412f462251753f67308405ca4d02ebe.tar.xz
Fix subscriptable dict type
Fix:
```
tests/test_state.py:267: error: "dict" is not subscriptable, use "typing.Dict" instead  [misc]
```

In Python 3.9, `typing` is deprecated and the types are subscriptable (generics) by default,
https://peps.python.org/pep-0585/#implementation
Diffstat (limited to '')
-rw-r--r--tests/test_state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_state.py b/tests/test_state.py
index 2029d3d60a..ddf59916b1 100644
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -264,7 +264,7 @@ class StateTestCase(unittest.TestCase):
 
         self.dummy_store.register_events(graph.walk())
 
-        context_store: dict[str, EventContext] = {}
+        context_store: Dict[str, EventContext] = {}
 
         for event in graph.walk():
             context = yield defer.ensureDeferred(