summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-07-16 13:52:29 +0100
committerGitHub <noreply@github.com>2020-07-16 13:52:29 +0100
commita973bcb8a4dd73cc504a2928a5a4bd30ebf4aeae (patch)
tree199a0621b184f3ef16d53a497cb74aee605f6964 /synapse/server.py
parentRemove obsolete comment. (diff)
downloadsynapse-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 'synapse/server.py')
-rw-r--r--synapse/server.py4
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):