mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-26 13:25:20 -04:00
Add some type hints to datastore (#12423)
* Add some type hints to datastore * newsfile * change `Collection` to `List` * refactor return type of `select_users_txn` * correct type hint in `stream.py` * Remove `Optional` in `select_users_txn` * remove not needed return type in `__init__` * Revert change in `get_stream_id_for_event_txn` * Remove import from `Literal`
This commit is contained in:
parent
4e13743738
commit
1783156dbc
9 changed files with 123 additions and 77 deletions
|
@ -742,7 +742,7 @@ class RelationsWorkerStore(SQLBaseStore):
|
|||
%s;
|
||||
"""
|
||||
|
||||
def _get_if_events_have_relations(txn) -> List[str]:
|
||||
def _get_if_events_have_relations(txn: LoggingTransaction) -> List[str]:
|
||||
clauses: List[str] = []
|
||||
clause, args = make_in_list_sql_clause(
|
||||
txn.database_engine, "relates_to_id", parent_ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue