diff options
author | Patrick Cloke <patrickc@matrix.org> | 2023-09-28 10:13:23 -0400 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2023-09-28 10:13:23 -0400 |
commit | 75576c151c57d27f2667e023171d9200f6c9f6e2 (patch) | |
tree | 1aa6907a8c11ac1d0b94b9df1da03759da8c96e5 | |
parent | Newsfragment (diff) | |
download | synapse-75576c151c57d27f2667e023171d9200f6c9f6e2.tar.xz |
Fix-up types.
-rw-r--r-- | synapse/storage/prepare_database.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/prepare_database.py b/synapse/storage/prepare_database.py index 9275253277..598ded33b5 100644 --- a/synapse/storage/prepare_database.py +++ b/synapse/storage/prepare_database.py @@ -25,6 +25,7 @@ from typing import ( Optional, TextIO, Tuple, + cast, ) import attr @@ -732,7 +733,7 @@ def _get_or_create_schema_state( applied_deltas = tuple(d for d, in txn) txn.execute("SELECT update_name, ordering FROM background_updates") - background_Updates = tuple(txn) + background_Updates = cast(Tuple[Tuple[str, int], ...], tuple(txn)) return _SchemaState( current_version=current_version, |