mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-13 02:42:19 -04:00
Reduce the number of "untyped defs" (#12716)
This commit is contained in:
parent
de1e599b9d
commit
17e1eb7749
16 changed files with 142 additions and 69 deletions
|
@ -798,9 +798,11 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
self,
|
||||
txn: LoggingTransaction,
|
||||
event_id: str,
|
||||
allow_none=False,
|
||||
) -> int:
|
||||
return self.db_pool.simple_select_one_onecol_txn(
|
||||
allow_none: bool = False,
|
||||
) -> Optional[int]:
|
||||
# Type ignore: we pass keyvalues a Dict[str, str]; the function wants
|
||||
# Dict[str, Any]. I think mypy is unhappy because Dict is invariant?
|
||||
return self.db_pool.simple_select_one_onecol_txn( # type: ignore[call-overload]
|
||||
txn=txn,
|
||||
table="events",
|
||||
keyvalues={"event_id": event_id},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue