why mypy why

pull/7997/head
Brendan Abolivier 2020-08-10 11:10:34 +01:00
parent 367e9e6e9e
commit cee6c6012e
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 3 additions and 1 deletions

View File

@ -541,7 +541,9 @@ class ServerConfig(Config):
raise ConfigError("'users_new_default_push_rules' must be a list")
# 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:
return any(listener.tls for listener in self.listeners)