diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-08-10 11:10:34 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2020-08-10 11:10:34 +0100 |
commit | cee6c6012ed11f1b8407e57679ab66ad308ff590 (patch) | |
tree | fcc9289a42d57cd93f5ebc24c567adbf53991191 /synapse/config | |
parent | Lint (diff) | |
download | synapse-cee6c6012ed11f1b8407e57679ab66ad308ff590.tar.xz |
why mypy why
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 23ddd0ab08..493d2bd513 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -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) |