mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
zerver/lib/cache.py: Change some TypeVars to Any.
Change ItemT and CompressedItemT to Any. See https://github.com/python/mypy/issues/1721.
This commit is contained in:
@@ -204,8 +204,8 @@ def cache_delete_many(items, cache_name=None):
|
|||||||
# value for cache (in case the values that we're caching are some
|
# value for cache (in case the values that we're caching are some
|
||||||
# function of the objects, not the objects themselves)
|
# function of the objects, not the objects themselves)
|
||||||
ObjKT = TypeVar('ObjKT', int, text_type)
|
ObjKT = TypeVar('ObjKT', int, text_type)
|
||||||
CompressedItemT = TypeVar('CompressedItemT')
|
ItemT = Any # https://github.com/python/mypy/issues/1721
|
||||||
ItemT = TypeVar('ItemT')
|
CompressedItemT = Any # https://github.com/python/mypy/issues/1721
|
||||||
def generic_bulk_cached_fetch(cache_key_function, query_function, object_ids,
|
def generic_bulk_cached_fetch(cache_key_function, query_function, object_ids,
|
||||||
extractor=lambda obj: obj,
|
extractor=lambda obj: obj,
|
||||||
setter=lambda obj: obj,
|
setter=lambda obj: obj,
|
||||||
|
|||||||
Reference in New Issue
Block a user