diff options
Diffstat (limited to 'synapse/storage/prepare_database.py')
-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, |