mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 22:24:57 -04:00
Add final type hint to synapse.server. (#15035)
This commit is contained in:
parent
7081bb56e2
commit
733531ee3e
7 changed files with 11 additions and 12 deletions
|
@ -37,6 +37,8 @@ class SQLBaseStore(metaclass=ABCMeta):
|
|||
per data store (and not one per physical database).
|
||||
"""
|
||||
|
||||
db_pool: DatabasePool
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
database: DatabasePool,
|
||||
|
|
|
@ -499,6 +499,7 @@ class DatabasePool:
|
|||
"""
|
||||
|
||||
_TXN_ID = 0
|
||||
engine: BaseDatabaseEngine
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -306,7 +306,7 @@ class PersistEventsStore:
|
|||
|
||||
# The set of event_ids to return. This includes all soft-failed events
|
||||
# and their prev events.
|
||||
existing_prevs = set()
|
||||
existing_prevs: Set[str] = set()
|
||||
|
||||
def _get_prevs_before_rejected_txn(
|
||||
txn: LoggingTransaction, batch: Collection[str]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue