diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-10-16 17:06:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 17:06:50 +0100 |
commit | d6094176d1828b7d169016910f5381b90310a885 (patch) | |
tree | 791f582ee2210404f9fe8c1c8317ee42d7080453 /synapse/api/auth.py | |
parent | Clean-up old transaction IDs on the background worker. (#8544) (diff) | |
parent | review comments (diff) | |
download | synapse-d6094176d1828b7d169016910f5381b90310a885.tar.xz |
Type annotations for LruCache (#8562)
* type annotations for LruCache * changelog * Apply suggestions from code review Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * review comments Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 4 |
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) |