diff options
author | David Robertson <davidr@element.io> | 2021-10-08 15:25:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 14:25:16 +0000 |
commit | 51a5da74ccd383806378b53ee8a09e27a8829f31 (patch) | |
tree | 23b1f1e5aebd931ce9e3faba8e8f301d1f079595 /synapse/replication/slave/storage/pushers.py | |
parent | Relax `ignore-missing-imports` for modules that have stubs now and update myp... (diff) | |
download | synapse-51a5da74ccd383806378b53ee8a09e27a8829f31.tar.xz |
Annotate synapse.storage.util (#10892)
Also mark `synapse.streams` as having has no untyped defs Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'synapse/replication/slave/storage/pushers.py')
-rw-r--r-- | synapse/replication/slave/storage/pushers.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/synapse/replication/slave/storage/pushers.py b/synapse/replication/slave/storage/pushers.py index 2672a2c94b..cea90c0f1b 100644 --- a/synapse/replication/slave/storage/pushers.py +++ b/synapse/replication/slave/storage/pushers.py @@ -15,9 +15,8 @@ from typing import TYPE_CHECKING from synapse.replication.tcp.streams import PushersStream -from synapse.storage.database import DatabasePool +from synapse.storage.database import DatabasePool, LoggingDatabaseConnection from synapse.storage.databases.main.pusher import PusherWorkerStore -from synapse.storage.types import Connection from ._base import BaseSlavedStore from ._slaved_id_tracker import SlavedIdTracker @@ -27,7 +26,12 @@ if TYPE_CHECKING: class SlavedPusherStore(PusherWorkerStore, BaseSlavedStore): - def __init__(self, database: DatabasePool, db_conn: Connection, hs: "HomeServer"): + def __init__( + self, + database: DatabasePool, + db_conn: LoggingDatabaseConnection, + hs: "HomeServer", + ): super().__init__(database, db_conn, hs) self._pushers_id_gen = SlavedIdTracker( # type: ignore db_conn, "pushers", "id", extra_tables=[("deleted_pushers", "stream_id")] |