summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-10-15 11:44:39 +0100
committerGitHub <noreply@github.com>2020-10-15 11:44:39 +0100
commit8075504a600b47ac93faf9b605ade691ae0fbcd3 (patch)
treefb3ab30d871bd18852cd2b87e38d315dc49b59cf /synapse
parentMerge pull request #8548 from matrix-org/rav/deferred_cache (diff)
downloadsynapse-8075504a600b47ac93faf9b605ade691ae0fbcd3.tar.xz
Enable mypy for synapse.util.caches (#8547)
This seemed to entail dragging in a type stub for SortedList.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/util/caches/ttlcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/ttlcache.py b/synapse/util/caches/ttlcache.py
index 3e180cafd3..6ce2a3d12b 100644
--- a/synapse/util/caches/ttlcache.py
+++ b/synapse/util/caches/ttlcache.py
@@ -34,7 +34,7 @@ class TTLCache:
         self._data = {}
 
         # the _CacheEntries, sorted by expiry time
-        self._expiry_list = SortedList()
+        self._expiry_list = SortedList()  # type: SortedList[_CacheEntry]
 
         self._timer = timer