Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Get the cache storage passing mypy #11354

Closed
wants to merge 17 commits into from
2 changes: 1 addition & 1 deletion synapse/replication/slave/storage/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@

class SlavedEventStore(
RoomMemberWorkerStore,
StreamWorkerStore,
StateGroupWorkerStore,
UserErasureWorkerStore,
BaseSlavedStore,
StreamWorkerStore,
clokep marked this conversation as resolved.
Show resolved Hide resolved
):
def __init__(self, database: DatabasePool, db_conn, hs: "HomeServer"):
super().__init__(database, db_conn, hs)
Expand Down
2 changes: 2 additions & 0 deletions synapse/storage/databases/main/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
EventPushActionsWorkerStore,
)
from synapse.storage.databases.main.relations import RelationsWorkerStore
from synapse.storage.databases.main.stream import StreamWorkerStore
from synapse.storage.engines import PostgresEngine
from synapse.storage.util.id_generators import MultiWriterIdGenerator
from synapse.util.caches.descriptors import _CachedFunction
Expand All @@ -57,6 +58,7 @@ class CacheInvalidationWorkerStore(
EventFederationWorkerStore,
RelationsWorkerStore,
EventPushActionsWorkerStore,
StreamWorkerStore,
):
# This class must be mixed in with a child class which provides the following
# attribute. TODO: can we get static analysis to enforce this?
Expand Down