Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix checher
  • Loading branch information
asvetlov authored and jakkdl committed Jul 31, 2023
commit a942bea3f363abd207921ea1d33c8a161aca20bc
23 changes: 10 additions & 13 deletions stdlib/functools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,16 @@ class _lru_cache_wrapper(Generic[_P, _T]):

def __copy__(self) -> _lru_cache_wrapper[_P, _T]: ...
def __deepcopy__(self, __memo: Any) -> _lru_cache_wrapper[_P, _T]: ...
@overload
def __get__(self, instance: _S, owner: type[_S]) -> _lru_cache_wrapper_instance[_S, _P, _T]: ...
@overload
def __get__(self, instance: _S, owner: None) -> _lru_cache_wrapper[_P, _T]: ...

@final
class _lru_cache_wrapper_instance(Generic[_S, _P, _T]):
__wrapped__: Callable[Concatenate[_S, _P], _T]
def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _T: ...
def cache_info(self) -> _CacheInfo: ...
def cache_clear(self) -> None: ...
def __copy__(self) -> _lru_cache_wrapper[Concatenate[_S, _P], _T]: ...
def __deepcopy__(self, __memo: Any) -> _lru_cache_wrapper[Concatenate[_S, _P], _T]: ...
if sys.version_info >= (3, 8):
@overload
def __get__(self, instance: _S, owner: type[_S] = ...) -> Callable[Concatenate[_S, _P], _T]: ...
@overload
def __get__(self, instance: _S, owner: None = ...) -> _lru_cache_wrapper[_P, _T]: ...
else:
@overload
def __get__(self, instance: _S, owner: type[_S]) -> Callable[Concatenate[_S, _P], _T]: ...
@overload
def __get__(self, instance: _S, owner: None) -> _lru_cache_wrapper[_P, _T]: ...

if sys.version_info >= (3, 8):
@overload
Expand Down