diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-11-23 10:21:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 15:21:19 +0000 |
commit | 55669bd3de7137553085e9f1c16a686ff657108c (patch) | |
tree | 28637b8af5497395537cf11b0f627e05d32670da /synapse/config/server.py | |
parent | Remove code invalidated by deprecated config flag 'trust_identity_servers_for... (diff) | |
download | synapse-55669bd3de7137553085e9f1c16a686ff657108c.tar.xz |
Add missing type hints to config base classes (#11377)
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 7bc0030a9e..8445e9dd05 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -421,7 +421,7 @@ class ServerConfig(Config): # before redacting them. redaction_retention_period = config.get("redaction_retention_period", "7d") if redaction_retention_period is not None: - self.redaction_retention_period = self.parse_duration( + self.redaction_retention_period: Optional[int] = self.parse_duration( redaction_retention_period ) else: @@ -430,7 +430,7 @@ class ServerConfig(Config): # How long to keep entries in the `users_ips` table. user_ips_max_age = config.get("user_ips_max_age", "28d") if user_ips_max_age is not None: - self.user_ips_max_age = self.parse_duration(user_ips_max_age) + self.user_ips_max_age: Optional[int] = self.parse_duration(user_ips_max_age) else: self.user_ips_max_age = None |