Skip to content

Commit 03e550f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent fff1058 commit 03e550f

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

stdlib/functools.pyi

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
import types
33
from _typeshed import SupportsAllComparisons, SupportsItems
44
from collections.abc import Callable, Hashable, Iterable, Sequence, Sized
5-
from typing import Any, Generic, Literal, NamedTuple, TypedDict, TypeVar, final, overload, Protocol
5+
from typing import Any, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, final, overload
66
from typing_extensions import ParamSpec, Self, TypeAlias
77

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

7474
@overload
75-
def __call__(
76-
_self: _CacheMethod[_T, _P, _R],
77-
*args: _P.args,
78-
**kwargs: _P.kwargs
79-
) -> _R: ...
75+
def __call__(_self: _CacheMethod[_T, _P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
8076
@overload
81-
def __call__(
82-
_self: _CacheMethod[_T, _P, _R],
83-
self: _T,
84-
*args: _P.args,
85-
**kwargs: _P.kwargs
86-
) -> _R: ...
77+
def __call__(_self: _CacheMethod[_T, _P, _R], self: _T, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
8778
@overload
88-
def __call__(
89-
_self: _CacheClassmethod[_T, _P, _R],
90-
*args: _P.args,
91-
**kwargs: _P.kwargs
92-
) -> _R: ...
79+
def __call__(_self: _CacheClassmethod[_T, _P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
9380
@overload
94-
def __call__(
95-
_self: _CacheClassmethod[_T, _P, _R],
96-
cls: type[_T],
97-
*args: _P.args,
98-
**kwargs: _P.kwargs
99-
) -> _R: ...
81+
def __call__(_self: _CacheClassmethod[_T, _P, _R], cls: type[_T], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
10082
@overload
101-
def __call__(
102-
_self: _CacheFn[_P, _R],
103-
*args: _P.args,
104-
**kwargs: _P.kwargs
105-
) -> _R: ...
106-
83+
def __call__(_self: _CacheFn[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...
10784
def cache_info(self) -> _CacheInfo: ...
10885
def cache_clear(self) -> None: ...
10986
if sys.version_info >= (3, 9):

0 commit comments

Comments
 (0)