diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-12 15:21:12 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-12-12 15:21:12 +0000 |
commit | 495005360cd37009818ad4214a5462c3dd0b15a6 (patch) | |
tree | 4028a737f4294313814469b5798ed7cc9f81813c /synapse/config | |
parent | Newsfile (diff) | |
download | synapse-495005360cd37009818ad4214a5462c3dd0b15a6.tar.xz |
Bump version of mypy
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/emailconfig.py | 3 | ||||
-rw-r--r-- | synapse/config/ratelimiting.py | 3 | ||||
-rw-r--r-- | synapse/config/server.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py index 18f42a87f9..35756bed87 100644 --- a/synapse/config/emailconfig.py +++ b/synapse/config/emailconfig.py @@ -21,6 +21,7 @@ from __future__ import print_function import email.utils import os from enum import Enum +from typing import Optional import pkg_resources @@ -101,7 +102,7 @@ class EmailConfig(Config): # both in RegistrationConfig and here. We should factor this bit out self.account_threepid_delegate_email = self.trusted_third_party_id_servers[ 0 - ] + ] # type: Optional[str] self.using_identity_server_from_trusted_list = True else: raise ConfigError( diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py index 947f653e03..4a3bfc4354 100644 --- a/synapse/config/ratelimiting.py +++ b/synapse/config/ratelimiting.py @@ -83,10 +83,9 @@ class RatelimitConfig(Config): ) rc_admin_redaction = config.get("rc_admin_redaction") + self.rc_admin_redaction = None if rc_admin_redaction: self.rc_admin_redaction = RateLimitConfig(rc_admin_redaction) - else: - self.rc_admin_redaction = None def generate_config_section(self, **kwargs): return """\ diff --git a/synapse/config/server.py b/synapse/config/server.py index a4bef00936..50af858c76 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -200,7 +200,7 @@ class ServerConfig(Config): self.admin_contact = config.get("admin_contact", None) # FIXME: federation_domain_whitelist needs sytests - self.federation_domain_whitelist = None + self.federation_domain_whitelist = None # type: Optional[dict] federation_domain_whitelist = config.get("federation_domain_whitelist", None) if federation_domain_whitelist is not None: |