mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 19:05:05 -04:00
Use inline type hints in http/federation/
, storage/
and util/
(#10381)
This commit is contained in:
parent
3acf85c85f
commit
bdfde6dca1
38 changed files with 149 additions and 161 deletions
|
@ -1365,10 +1365,10 @@ class EventsWorkerStore(SQLBaseStore):
|
|||
# we need to make sure that, for every stream id in the results, we get *all*
|
||||
# the rows with that stream id.
|
||||
|
||||
rows = await self.db_pool.runInteraction(
|
||||
rows: List[Tuple] = await self.db_pool.runInteraction(
|
||||
"get_all_updated_current_state_deltas",
|
||||
get_all_updated_current_state_deltas_txn,
|
||||
) # type: List[Tuple]
|
||||
)
|
||||
|
||||
# if we've got fewer rows than the limit, we're good
|
||||
if len(rows) < target_row_count:
|
||||
|
@ -1469,7 +1469,7 @@ class EventsWorkerStore(SQLBaseStore):
|
|||
"""
|
||||
|
||||
mapping = {}
|
||||
txn_id_to_event = {} # type: Dict[Tuple[str, int, str], str]
|
||||
txn_id_to_event: Dict[Tuple[str, int, str], str] = {}
|
||||
|
||||
for event in events:
|
||||
token_id = getattr(event.internal_metadata, "token_id", None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue