summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-16 15:56:39 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-16 15:56:39 +0100
commit0ec0bc3886bd72bdf2f64d455a7d777f4573a4f1 (patch)
treef92a26944b59e96f8d5bebb394d0e7b50caa6668 /synapse/api/auth.py
parentMake LruCache register its own metrics (#8561) (diff)
downloadsynapse-0ec0bc3886bd72bdf2f64d455a7d777f4573a4f1.tar.xz
type annotations for LruCache
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index eb6f418b13..bff87fabde 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -69,7 +69,9 @@ class Auth:
         self.store = hs.get_datastore()
         self.state = hs.get_state_handler()
 
-        self.token_cache = LruCache(10000, "token_cache")
+        self.token_cache = LruCache(
+            10000, "token_cache"
+        )  # type: LruCache[str, Tuple[str, bool]]
 
         self._auth_blocking = AuthBlocking(self.hs)