summary refs log tree commit diff
path: root/synapse/config/cache.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-11-23 10:21:19 -0500
committerGitHub <noreply@github.com>2021-11-23 15:21:19 +0000
commit55669bd3de7137553085e9f1c16a686ff657108c (patch)
tree28637b8af5497395537cf11b0f627e05d32670da /synapse/config/cache.py
parentRemove code invalidated by deprecated config flag 'trust_identity_servers_for... (diff)
downloadsynapse-55669bd3de7137553085e9f1c16a686ff657108c.tar.xz
Add missing type hints to config base classes (#11377)
Diffstat (limited to 'synapse/config/cache.py')
-rw-r--r--synapse/config/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/cache.py b/synapse/config/cache.py
index d119427ad8..f054455534 100644
--- a/synapse/config/cache.py
+++ b/synapse/config/cache.py
@@ -15,7 +15,7 @@
 import os
 import re
 import threading
-from typing import Callable, Dict
+from typing import Callable, Dict, Optional
 
 from synapse.python_dependencies import DependencyException, check_requirements
 
@@ -217,7 +217,7 @@ class CacheConfig(Config):
 
         expiry_time = cache_config.get("expiry_time")
         if expiry_time:
-            self.expiry_time_msec = self.parse_duration(expiry_time)
+            self.expiry_time_msec: Optional[int] = self.parse_duration(expiry_time)
         else:
             self.expiry_time_msec = None