@@ -24,20 +24,20 @@ class _CacheInfo(NamedTuple):
24
24
maxsize : int
25
25
currsize : int
26
26
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
30
30
def cache_info (self ) -> _CacheInfo : ...
31
31
def cache_clear (self ) -> None : ...
32
32
33
33
if sys .version_info >= (3 , 8 ):
34
34
@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
36
36
@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
38
38
39
39
else :
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
41
41
42
42
WRAPPER_ASSIGNMENTS : Sequence [str ]
43
43
WRAPPER_UPDATES : Sequence [str ]
@@ -117,7 +117,7 @@ if sys.version_info >= (3, 8):
117
117
def __class_getitem__ (cls , item : Any ) -> GenericAlias : ...
118
118
119
119
if 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
121
121
122
122
def _make_key (
123
123
args : Tuple [Hashable , ...],
0 commit comments