diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-24 06:48:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 06:48:46 -0400 |
commit | 7e8dc9934e29ebd5f30f42b4b6e6b4491569373a (patch) | |
tree | 7b4f23523a627b04cb4b61c1c24ec9ec4ff03893 /synapse/server.py | |
parent | Increase default join burst ratelimiting (#9674) (diff) | |
download | synapse-7e8dc9934e29ebd5f30f42b4b6e6b4491569373a.tar.xz |
Add a type hints for service notices to the HomeServer object. (#9675)
Diffstat (limited to 'synapse/server.py')
-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 98822d8e2f..5e787e2281 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -650,13 +650,13 @@ class HomeServer(metaclass=abc.ABCMeta): return FederationHandlerRegistry(self) @cache_in_self - def get_server_notices_manager(self): + def get_server_notices_manager(self) -> ServerNoticesManager: if self.config.worker_app: raise Exception("Workers cannot send server notices") return ServerNoticesManager(self) @cache_in_self - def get_server_notices_sender(self): + def get_server_notices_sender(self) -> WorkerServerNoticesSender: if self.config.worker_app: return WorkerServerNoticesSender(self) return ServerNoticesSender(self) |