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:
Eklavya Sharma
2016-06-27 16:50:50 +05:30
parent f8c710b70e
commit 7ca1e658b5

View File

@@ -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
# function of the objects, not the objects themselves)
ObjKT = TypeVar('ObjKT', int, text_type)
CompressedItemT = TypeVar('CompressedItemT')
ItemT = TypeVar('ItemT')
ItemT = Any # https://github.com/python/mypy/issues/1721
CompressedItemT = Any # https://github.com/python/mypy/issues/1721
def generic_bulk_cached_fetch(cache_key_function, query_function, object_ids,
extractor=lambda obj: obj,
setter=lambda obj: obj,