functools: add cache (#4089)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-26 17:36:01 -07:00
committed by GitHub
parent a8834fcd46
commit 3eb6fb8714

View File

@@ -109,3 +109,5 @@ if sys.version_info >= (3, 9):
def static_order(self) -> Iterable[_T]: ...
class CycleError(ValueError): ...
def cache(__user_function: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...