summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-07 19:55:15 +0100
committerGitHub <noreply@github.com>2021-10-07 19:55:15 +0100
commite79ee48313404abf8fbb7c88361e4ab1efa29a81 (patch)
tree064100bda05bb1ac0c21d567a43b3545cf47db30 /synapse
parentEnsure each cache config test uses separate state. (#11019) (diff)
downloadsynapse-e79ee48313404abf8fbb7c88361e4ab1efa29a81.tar.xz
disallow-untyped-defs for synapse.server_notices (#11021)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/server_notices/server_notices_manager.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py
index cd1c5ff6f4..0cf60236f8 100644
--- a/synapse/server_notices/server_notices_manager.py
+++ b/synapse/server_notices/server_notices_manager.py
@@ -41,12 +41,8 @@ class ServerNoticesManager:
         self._notifier = hs.get_notifier()
         self.server_notices_mxid = self._config.servernotices.server_notices_mxid
 
-    def is_enabled(self):
-        """Checks if server notices are enabled on this server.
-
-        Returns:
-            bool
-        """
+    def is_enabled(self) -> bool:
+        """Checks if server notices are enabled on this server."""
         return self.server_notices_mxid is not None
 
     async def send_notice(