@@ -24,20 +24,20 @@ class _CacheInfo(NamedTuple):
2424 maxsize : int
2525 currsize : int
2626
27- class _lru_cache_wrapper (Generic [_P , _T ]):
28- __wrapped__ : Callable [_P , _T ]
29- def __call__ (self , * args : _P .args , ** kwargs : _P .kwargs ) -> _T : ...
27+ class _lru_cache_wrapper (Generic [_P , _T ]): # type: ignore
28+ __wrapped__ : Callable [_P , _T ] # type: ignore
29+ def __call__ (self , * args : _P .args , ** kwargs : _P .kwargs ) -> _T : ... # type: ignore
3030 def cache_info (self ) -> _CacheInfo : ...
3131 def cache_clear (self ) -> None : ...
3232
3333if sys .version_info >= (3 , 8 ):
3434 @overload
35- def lru_cache (maxsize : int | None = ..., typed : bool = ...) -> Callable [[Callable [_P , _T ]], _lru_cache_wrapper [_P , _T ]]: ...
35+ def lru_cache (maxsize : int | None = ..., typed : bool = ...) -> Callable [[Callable [_P , _T ]], _lru_cache_wrapper [_P , _T ]]: ... # type: ignore
3636 @overload
37- def lru_cache (maxsize : Callable [_P , _T ], typed : bool = ...) -> _lru_cache_wrapper [_P , _T ]: ...
37+ def lru_cache (maxsize : Callable [_P , _T ], typed : bool = ...) -> _lru_cache_wrapper [_P , _T ]: ... # type: ignore
3838
3939else :
40- def lru_cache (maxsize : int | None = ..., typed : bool = ...) -> Callable [[Callable [_P , _T ]], _lru_cache_wrapper [_P , _T ]]: ...
40+ def lru_cache (maxsize : int | None = ..., typed : bool = ...) -> Callable [[Callable [_P , _T ]], _lru_cache_wrapper [_P , _T ]]: ... # type: ignore
4141
4242WRAPPER_ASSIGNMENTS : Sequence [str ]
4343WRAPPER_UPDATES : Sequence [str ]
@@ -117,7 +117,7 @@ if sys.version_info >= (3, 8):
117117 def __class_getitem__ (cls , item : Any ) -> GenericAlias : ...
118118
119119if sys .version_info >= (3 , 9 ):
120- def cache (__user_function : Callable [_P , _T ]) -> _lru_cache_wrapper [_P , _T ]: ...
120+ def cache (__user_function : Callable [_P , _T ]) -> _lru_cache_wrapper [_P , _T ]: ... # type: ignore
121121
122122def _make_key (
123123 args : Tuple [Hashable , ...],
0 commit comments