summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-09-28 10:13:23 -0400
committerPatrick Cloke <patrickc@matrix.org>2023-09-28 10:13:23 -0400
commit75576c151c57d27f2667e023171d9200f6c9f6e2 (patch)
tree1aa6907a8c11ac1d0b94b9df1da03759da8c96e5 /synapse
parentNewsfragment (diff)
downloadsynapse-75576c151c57d27f2667e023171d9200f6c9f6e2.tar.xz
Fix-up types.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/prepare_database.py3
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,