mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-13 06:42:20 -04:00
Add some type hints to datastore. (#12255)
This commit is contained in:
parent
4ba55a620f
commit
ac95167d2f
10 changed files with 61 additions and 42 deletions
|
@ -22,6 +22,7 @@ import attr
|
|||
|
||||
from synapse.api.constants import UserTypes
|
||||
from synapse.api.errors import Codes, StoreError, SynapseError, ThreepidValidationError
|
||||
from synapse.config.homeserver import HomeServerConfig
|
||||
from synapse.metrics.background_process_metrics import wrap_as_background_process
|
||||
from synapse.storage.database import (
|
||||
DatabasePool,
|
||||
|
@ -123,7 +124,7 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore):
|
|||
):
|
||||
super().__init__(database, db_conn, hs)
|
||||
|
||||
self.config = hs.config
|
||||
self.config: HomeServerConfig = hs.config
|
||||
|
||||
# Note: we don't check this sequence for consistency as we'd have to
|
||||
# call `find_max_generated_user_id_localpart` each time, which is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue