Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 18, 2024
1 parent fff1058 commit 03e550f
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions stdlib/functools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
import types
from _typeshed import SupportsAllComparisons, SupportsItems
from collections.abc import Callable, Hashable, Iterable, Sequence, Sized
from typing import Any, Generic, Literal, NamedTuple, TypedDict, TypeVar, final, overload, Protocol
from typing import Any, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, final, overload
from typing_extensions import ParamSpec, Self, TypeAlias

if sys.version_info >= (3, 9):
Expand Down Expand Up @@ -72,38 +72,15 @@ class _lru_cache_wrapper(Generic[_C]):
__wrapped__: _C

@overload
def __call__(
_self: _CacheMethod[_T, _P, _R],
*args: _P.args,
**kwargs: _P.kwargs
) -> _R: ...
def __call__(_self: _CacheMethod[_T, _P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
@overload
def __call__(
_self: _CacheMethod[_T, _P, _R],
self: _T,
*args: _P.args,
**kwargs: _P.kwargs
) -> _R: ...
def __call__(_self: _CacheMethod[_T, _P, _R], self: _T, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
@overload
def __call__(
_self: _CacheClassmethod[_T, _P, _R],
*args: _P.args,
**kwargs: _P.kwargs
) -> _R: ...
def __call__(_self: _CacheClassmethod[_T, _P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
@overload
def __call__(
_self: _CacheClassmethod[_T, _P, _R],
cls: type[_T],
*args: _P.args,
**kwargs: _P.kwargs
) -> _R: ...
def __call__(_self: _CacheClassmethod[_T, _P, _R], cls: type[_T], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
@overload
def __call__(
_self: _CacheFn[_P, _R],
*args: _P.args,
**kwargs: _P.kwargs
) -> _R: ...

def __call__(_self: _CacheFn[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
def cache_info(self) -> _CacheInfo: ...
def cache_clear(self) -> None: ...
if sys.version_info >= (3, 9):
Expand Down

0 comments on commit 03e550f

Please sign in to comment.