forked-synapse/synapse/storage/controllers
Eric Eastwood c51d2e6199
Fix subscriptable type usage in Python <3.9 (#15604)
Fix the following `mypy` errors when running `mypy` with Python 3.7:
```
synapse/storage/controllers/stats.py:58: error: "Counter" is not subscriptable, use "typing.Counter" instead  [misc]

tests/test_state.py:267: error: "dict" is not subscriptable, use "typing.Dict" instead  [misc]
```

Part of https://github.com/matrix-org/synapse/issues/15603

In Python 3.9, `typing` is deprecated and the types are subscriptable (generics) by default, https://peps.python.org/pep-0585/#implementation
2023-05-16 12:19:46 -05:00
..
__init__.py Add admin endpoint to query room sizes (#15482) 2023-04-26 16:00:11 +00:00
persist_events.py Move StateFilter to synapse.types (#14668) 2022-12-12 16:19:30 +00:00
purge_events.py Include the room ID in more purge room log lines. (#15222) 2023-03-08 20:08:56 +00:00
state.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
stats.py Fix subscriptable type usage in Python <3.9 (#15604) 2023-05-16 12:19:46 -05:00