mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 19:15:51 +03:00
c51d2e6199
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
1 line
45 B
Text
1 line
45 B
Text
Fix subscriptable type usage in Python <3.9.
|