mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
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
This commit is contained in:
parent
ba572647b2
commit
55b08534a4
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class StateTestCase(unittest.TestCase):
|
||||||
|
|
||||||
self.dummy_store.register_events(graph.walk())
|
self.dummy_store.register_events(graph.walk())
|
||||||
|
|
||||||
context_store: dict[str, EventContext] = {}
|
context_store: Dict[str, EventContext] = {}
|
||||||
|
|
||||||
for event in graph.walk():
|
for event in graph.walk():
|
||||||
context = yield defer.ensureDeferred(
|
context = yield defer.ensureDeferred(
|
||||||
|
|
Loading…
Reference in a new issue