diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-07-16 13:52:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 13:52:29 +0100 |
commit | a973bcb8a4dd73cc504a2928a5a4bd30ebf4aeae (patch) | |
tree | 199a0621b184f3ef16d53a497cb74aee605f6964 /synapse/server.py | |
parent | Remove obsolete comment. (diff) | |
download | synapse-a973bcb8a4dd73cc504a2928a5a4bd30ebf4aeae.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py index d5ebaea7f7..0e6ea96b33 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -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): |