mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 18:09:27 -05:00
why mypy why
This commit is contained in:
parent
367e9e6e9e
commit
cee6c6012e
@ -541,7 +541,9 @@ class ServerConfig(Config):
|
|||||||
raise ConfigError("'users_new_default_push_rules' must be a list")
|
raise ConfigError("'users_new_default_push_rules' must be a list")
|
||||||
|
|
||||||
# Turn the list into a set to improve lookup speed.
|
# Turn the list into a set to improve lookup speed.
|
||||||
self.users_new_default_push_rules = set(self.users_new_default_push_rules)
|
self.users_new_default_push_rules = (
|
||||||
|
set(self.users_new_default_push_rules)
|
||||||
|
) # type: set
|
||||||
|
|
||||||
def has_tls_listener(self) -> bool:
|
def has_tls_listener(self) -> bool:
|
||||||
return any(listener.tls for listener in self.listeners)
|
return any(listener.tls for listener in self.listeners)
|
||||||
|
Loading…
Reference in New Issue
Block a user