mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 06:24:07 -04:00
Enable mypy for synapse.util.caches (#8547)
This seemed to entail dragging in a type stub for SortedList.
This commit is contained in:
parent
0a08cd1065
commit
8075504a60
5 changed files with 185 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue