diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-04-12 12:54:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 11:54:00 +0100 |
commit | 1783156dbcf4164692e66275d1c29857c434995b (patch) | |
tree | d2d18c66112307a447be9febed9669c55276cea0 /synapse/storage/databases/main/relations.py | |
parent | Poetry: select olddeps using `poetry` (#12407) (diff) | |
download | synapse-1783156dbcf4164692e66275d1c29857c434995b.tar.xz |
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`
Diffstat (limited to 'synapse/storage/databases/main/relations.py')
-rw-r--r-- | synapse/storage/databases/main/relations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index db929ef523..407158ceee 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -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 |