From f6bbc46c35b4c54cc6dd3268062df447ac81e718 Mon Sep 17 00:00:00 2001 From: Kai Lautaportti Date: Sat, 22 Oct 2016 15:45:57 -0700 Subject: [PATCH] Fix functools.lru_cache() type hint to allow maxsize=None (#627) --- stdlib/3/functools.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/functools.pyi b/stdlib/3/functools.pyi index 2bd79ef71..c24faf811 100644 --- a/stdlib/3/functools.pyi +++ b/stdlib/3/functools.pyi @@ -28,7 +28,7 @@ class _lru_cache_wrapper(Generic[_T]): def cache_info(self) -> CacheInfo: ... class lru_cache(): - def __init__(self, maxsize: int = ..., typed: bool = ...) -> None: + def __init__(self, maxsize: Optional[int] = ..., typed: bool = ...) -> None: pass def __call__(self, f: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...