forked-synapse/synapse/storage
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
..
controllers Fix subscriptable type usage in Python <3.9 (#15604) 2023-05-16 12:19:46 -05:00
databases Revert "Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437)" (#15580) 2023-05-12 11:38:16 +01:00
engines Speed up SQLite unit test CI (#15334) 2023-03-30 16:21:12 +01:00
schema Revert "Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437)" (#15580) 2023-05-12 11:38:16 +01:00
util Combine AbstractStreamIdTracker and AbstractStreamIdGenerator. (#15192) 2023-03-03 08:13:37 -05:00
__init__.py Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
_base.py Add final type hint to synapse.server. (#15035) 2023-02-09 09:49:04 -05:00
background_updates.py Revert "Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437)" (#15580) 2023-05-12 11:38:16 +01:00
database.py Speed up rebuilding of the user directory for local users (#15529) 2023-05-03 13:41:37 +00:00
keys.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
prepare_database.py Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
push_rule.py
roommember.py
types.py More precise type for LoggingTransaction.execute (#15432) 2023-04-14 18:04:49 +00:00