mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 19:34:52 -04:00
Add some tiny type annotations (#7870)
I found these made pycharm have more of a clue as to what was going on in other places.
This commit is contained in:
parent
12528dc42f
commit
a973bcb8a4
3 changed files with 7 additions and 8 deletions
|
@ -106,7 +106,7 @@ from synapse.server_notices.worker_server_notices_sender import (
|
|||
WorkerServerNoticesSender,
|
||||
)
|
||||
from synapse.state import StateHandler, StateResolutionHandler
|
||||
from synapse.storage import DataStores, Storage
|
||||
from synapse.storage import DataStore, DataStores, Storage
|
||||
from synapse.streams.events import EventSources
|
||||
from synapse.util import Clock
|
||||
from synapse.util.distributor import Distributor
|
||||
|
@ -312,7 +312,7 @@ class HomeServer(object):
|
|||
def get_clock(self):
|
||||
return self.clock
|
||||
|
||||
def get_datastore(self):
|
||||
def get_datastore(self) -> DataStore:
|
||||
return self.datastores.main
|
||||
|
||||
def get_datastores(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue