diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-04-27 14:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 13:05:00 +0100 |
commit | b76f1a4d5f918def1f643910939b80e9e035e07f (patch) | |
tree | b0492ace0e54340b0b40d990a298c2c249274427 /synapse/storage/databases/main/appservice.py | |
parent | Bound ephemeral events by key (#12544) (diff) | |
download | synapse-b76f1a4d5f918def1f643910939b80e9e035e07f.tar.xz |
Add some type hints to datastore (#12485)
Diffstat (limited to 'synapse/storage/databases/main/appservice.py')
-rw-r--r-- | synapse/storage/databases/main/appservice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/appservice.py b/synapse/storage/databases/main/appservice.py index fa732edcca..945707b0ec 100644 --- a/synapse/storage/databases/main/appservice.py +++ b/synapse/storage/databases/main/appservice.py @@ -14,7 +14,7 @@ # limitations under the License. import logging import re -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Pattern, Tuple +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Pattern, Tuple, cast from synapse.appservice import ( ApplicationService, @@ -83,7 +83,7 @@ class ApplicationServiceWorkerStore(RoomMemberWorkerStore): txn.execute( "SELECT COALESCE(max(txn_id), 0) FROM application_services_txns" ) - return txn.fetchone()[0] # type: ignore + return cast(Tuple[int], txn.fetchone())[0] self._as_txn_seq_gen = build_sequence_generator( db_conn, |