mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 20:25:03 -04:00
disallow-untyped-defs for synapse.server_notices (#11021)
This commit is contained in:
parent
7301019d48
commit
e79ee48313
3 changed files with 6 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue