forked-synapse/synapse/util/caches
David Robertson 1026776380
mypy plugin to check @cached return types (#14911)
Co-authored-by: David Robertson <davidr@element.io>
Co-authored-by: Patrick Cloke <patrickc@matrix.org>
Co-authored-by: Erik Johnston <erik@matrix.org>

Assert that the return type of callables wrapped in @cached
and @cachedList are cachable (aka immutable).
2023-10-02 14:22:36 +00:00
..
__init__.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
cached_call.py Add missing type hints to synapse.logging.context (#11556) 2021-12-14 17:35:28 +00:00
deferred_cache.py Fix typechecking with twisted trunk (#16121) 2023-08-24 14:53:07 +00:00
descriptors.py mypy plugin to check @cached return types (#14911) 2023-10-02 14:22:36 +00:00
dictionary_cache.py Improve type hints for attrs classes (#16276) 2023-09-08 19:29:38 +01:00
expiringcache.py Only use literal strings for process names (#16315) 2023-09-15 09:10:24 +01:00
lrucache.py Prefill events after invalidate not before when persisting events (#15758) 2023-06-14 09:42:18 +01:00
response_cache.py Add metrics tracking for eviction to ResponseCache (#16028) 2023-08-01 08:10:49 -04:00
stream_change_cache.py Check the stream position before checking if the cache is empty. (#14639) 2022-12-08 11:35:49 -05:00
treecache.py Speed up @cachedList (#13591) 2022-08-23 14:53:27 +00:00
ttlcache.py Improve type hints for attrs classes (#16276) 2023-09-08 19:29:38 +01:00