mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 14:39:22 -05: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