Add cache_clear to lru_cache (#1941)

This commit is contained in:
Ethan Smith
2018-03-05 18:52:46 -08:00
committed by Jelle Zijlstra
parent 6c30806d07
commit 1c47458ac6

View File

@@ -24,6 +24,7 @@ class _lru_cache_wrapper(Generic[_T]):
__wrapped__ = ... # type: Callable[..., _T]
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
def cache_info(self) -> _CacheInfo: ...
def cache_clear(self) -> None: ...
class lru_cache():
def __init__(self, maxsize: Optional[int] = ..., typed: bool = ...) -> None: ...