mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Ensure that get_datastores().main
is typed (#12070)
Signed-off-by: Sean Quah <seanq@element.io>
This commit is contained in:
parent
f3fd8558cd
commit
b43c3ef8e2
1
changelog.d/12070.misc
Normal file
1
changelog.d/12070.misc
Normal file
@ -0,0 +1 @@
|
||||
Remove legacy `HomeServer.get_datastore()`.
|
@ -24,6 +24,7 @@ from synapse.storage.prepare_database import prepare_database
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from synapse.server import HomeServer
|
||||
from synapse.storage.databases.main import DataStore
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -44,7 +45,7 @@ class Databases(Generic[DataStoreT]):
|
||||
"""
|
||||
|
||||
databases: List[DatabasePool]
|
||||
main: DataStoreT
|
||||
main: "DataStore" # FIXME: #11165: actually an instance of `main_store_class`
|
||||
state: StateGroupDataStore
|
||||
persist_events: Optional[PersistEventsStore]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user