Enable mypy for synapse.util.caches (#8547)

This seemed to entail dragging in a type stub for SortedList.
This commit is contained in:
Richard van der Hoff 2020-10-15 11:44:39 +01:00 committed by GitHub
parent 0a08cd1065
commit 8075504a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 185 additions and 10 deletions

View file

@ -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