11import sys
2- from _typeshed import (
3- SupportsAdd ,
4- SupportsGetItem ,
5- SupportsMod ,
6- SupportsMul ,
7- SupportsRAdd ,
8- SupportsRMod ,
9- SupportsRMul ,
10- SupportsRSub ,
11- SupportsSub ,
12- )
2+ from _typeshed import SupportsGetItem
133from collections .abc import Callable , Container , Iterable , MutableMapping , MutableSequence , Sequence
144from operator import attrgetter as attrgetter , itemgetter as itemgetter , methodcaller as methodcaller
155from typing import Any , AnyStr , ParamSpec , Protocol , SupportsAbs , SupportsIndex , TypeAlias , TypeVar , overload , type_check_only
@@ -18,7 +8,6 @@ from typing_extensions import TypeIs
188_R = TypeVar ("_R" )
199_T = TypeVar ("_T" )
2010_T_co = TypeVar ("_T_co" , covariant = True )
21- _T_contra = TypeVar ("_T_contra" , contravariant = True )
2211_K = TypeVar ("_K" )
2312_V = TypeVar ("_V" )
2413_P = ParamSpec ("_P" )
@@ -69,43 +58,24 @@ def truth(a: object, /) -> bool: ...
6958def is_ (a : object , b : object , / ) -> bool : ...
7059def is_not (a : object , b : object , / ) -> bool : ...
7160def abs (a : SupportsAbs [_T ], / ) -> _T : ...
72-
73- @overload
74- def add (a : SupportsAdd [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
75- @overload
76- def add (a : _T_contra , b : SupportsRAdd [_T_contra , _T_co ], / ) -> _T_co : ...
77-
78- def and_ (a , b , / ): ...
79- def floordiv (a , b , / ): ...
61+ def add (a : Any , b : Any , / ) -> Any : ...
62+ def and_ (a : Any , b : Any , / ) -> Any : ...
63+ def floordiv (a : Any , b : Any , / ) -> Any : ...
8064def index (a : SupportsIndex , / ) -> int : ...
8165def inv (a : _SupportsInversion [_T_co ], / ) -> _T_co : ...
8266def invert (a : _SupportsInversion [_T_co ], / ) -> _T_co : ...
83- def lshift (a , b , / ): ...
84-
85- @overload
86- def mod (a : SupportsMod [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
87- @overload
88- def mod (a : _T_contra , b : SupportsRMod [_T_contra , _T_co ], / ) -> _T_co : ...
89-
90- @overload
91- def mul (a : SupportsMul [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
92- @overload
93- def mul (a : _T_contra , b : SupportsRMul [_T_contra , _T_co ], / ) -> _T_co : ...
94-
95- def matmul (a , b , / ): ...
67+ def lshift (a : Any , b : Any , / ) -> Any : ...
68+ def mod (a : Any , b : Any , / ) -> Any : ...
69+ def mul (a : Any , b : Any , / ) -> Any : ...
70+ def matmul (a : Any , b : Any , / ) -> Any : ...
9671def neg (a : _SupportsNeg [_T_co ], / ) -> _T_co : ...
97- def or_ (a , b , / ): ...
72+ def or_ (a : Any , b : Any , / ) -> Any : ...
9873def pos (a : _SupportsPos [_T_co ], / ) -> _T_co : ...
99- def pow (a , b , / ): ...
100- def rshift (a , b , / ): ...
101-
102- @overload
103- def sub (a : SupportsSub [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
104- @overload
105- def sub (a : _T_contra , b : SupportsRSub [_T_contra , _T_co ], / ) -> _T_co : ...
106-
107- def truediv (a , b , / ): ...
108- def xor (a , b , / ): ...
74+ def pow (a : Any , b : Any , / ) -> Any : ...
75+ def rshift (a : Any , b : Any , / ) -> Any : ...
76+ def sub (a : Any , b : Any , / ) -> Any : ...
77+ def truediv (a : Any , b : Any , / ) -> Any : ...
78+ def xor (a : Any , b : Any , / ) -> Any : ...
10979def concat (a : Sequence [_T ], b : Sequence [_T ], / ) -> Sequence [_T ]: ...
11080def contains (a : Container [object ], b : object , / ) -> bool : ...
11181def countOf (a : Iterable [object ], b : object , / ) -> int : ...
0 commit comments