Skip to content

Commit 602bf14

Browse files
committed
Fix type arguments
1 parent 7e67f03 commit 602bf14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/operator.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ _T_co = TypeVar("_T_co", covariant=True)
6161
_T1 = TypeVar("_T1")
6262
_T2 = TypeVar("_T2")
6363
_Ts = TypeVarTuple("_Ts")
64-
_P = ParamSpec("_P", default=[])
64+
_P = ParamSpec("_P", default=...)
6565
_R = TypeVar("_R", default=Any)
6666

6767
__all__ = [
@@ -219,7 +219,7 @@ class itemgetter(Generic[_T_co]):
219219

220220
@final
221221
class methodcaller(Generic[_P, _R]):
222-
def __new__(cls, name: str, /, *args: _P.args, **kwargs: _P.kwargs) -> Self: ...
222+
def __new__(cls, name: str, /, *args: _P.args, **kwargs: _P.kwargs) -> methodcaller[_P, Any]: ...
223223
# obj needs to have the named method with the correct signature.
224224
# Unfortunately, we can't check that statically, so we need to use Any.
225225
def __call__(self, obj: Any) -> _R: ...

0 commit comments

Comments
 (0)