summary refs log tree commit diff
path: root/synapse/util/caches/lrucache.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-07-18 13:05:07 +0100
committerErik Johnston <erik@matrix.org>2022-07-18 13:05:07 +0100
commit5de571987e1fa983c97efb1fbe30bacf9201e361 (patch)
treefd8c500b6889dfbf7d90e99a729935c90a0d2036 /synapse/util/caches/lrucache.py
parentComment TreeCache (diff)
downloadsynapse-github/erikj/tree_cache_typing.tar.xz
Diffstat (limited to 'synapse/util/caches/lrucache.py')
-rw-r--r--synapse/util/caches/lrucache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py

index 6f95c1354e..80671daca3 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py
@@ -417,7 +417,7 @@ class LruCache(Generic[KT, VT]): else: real_clock = clock - cache: Union[Dict[KT, _Node[KT, VT]], TreeCache] = cache_type() + cache: Union[Dict[KT, _Node[KT, VT]], TreeCache[_Node[KT, VT]]] = cache_type() self.cache = cache # Used for introspection. self.apply_cache_factor_from_config = apply_cache_factor_from_config