diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-10-15 11:44:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 11:44:39 +0100 |
commit | 8075504a600b47ac93faf9b605ade691ae0fbcd3 (patch) | |
tree | fb3ab30d871bd18852cd2b87e38d315dc49b59cf /synapse | |
parent | Merge pull request #8548 from matrix-org/rav/deferred_cache (diff) | |
download | synapse-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.py | 2 |
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 |