mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
mypy: Fix return type of a function.
This commit is contained in:
parent
3f5d0e69fb
commit
690b6025fb
@ -154,7 +154,7 @@ def cache_with_key(keyfunc, cache_name=None, timeout=None, with_statsd_key=None)
|
||||
# type: (Callable[..., Any]) -> (Callable[..., Any])
|
||||
@wraps(func)
|
||||
def func_with_caching(*args, **kwargs):
|
||||
# type: (*Any, **Any) -> Callable[..., Any]
|
||||
# type: (*Any, **Any) -> Any
|
||||
key = keyfunc(*args, **kwargs)
|
||||
|
||||
val = cache_get(key, cache_name=cache_name)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user