11import sys
2- from _typeshed import SupportsGetItem
2+ from _typeshed import SupportsGetItem , SupportsMul , SupportsRMul
33from collections .abc import Callable , Container , Iterable , MutableMapping , MutableSequence , Sequence
44from operator import attrgetter as attrgetter , itemgetter as itemgetter , methodcaller as methodcaller
55from typing import Any , AnyStr , Protocol , SupportsAbs , SupportsIndex , TypeVar , overload , type_check_only
@@ -8,6 +8,7 @@ from typing_extensions import ParamSpec, TypeAlias, TypeIs
88_R = TypeVar ("_R" )
99_T = TypeVar ("_T" )
1010_T_co = TypeVar ("_T_co" , covariant = True )
11+ _T_contra = TypeVar ("_T_contra" , contravariant = True )
1112_K = TypeVar ("_K" )
1213_V = TypeVar ("_V" )
1314_P = ParamSpec ("_P" )
@@ -58,24 +59,27 @@ def truth(a: object, /) -> bool: ...
5859def is_ (a : object , b : object , / ) -> bool : ...
5960def is_not (a : object , b : object , / ) -> bool : ...
6061def abs (a : SupportsAbs [_T ], / ) -> _T : ...
61- def add (a : Any , b : Any , / ) -> Any : ...
62- def and_ (a : Any , b : Any , / ) -> Any : ...
63- def floordiv (a : Any , b : Any , / ) -> Any : ...
62+ def add (a , b , / ): ...
63+ def and_ (a , b , / ): ...
64+ def floordiv (a , b , / ): ...
6465def index (a : SupportsIndex , / ) -> int : ...
6566def inv (a : _SupportsInversion [_T_co ], / ) -> _T_co : ...
6667def invert (a : _SupportsInversion [_T_co ], / ) -> _T_co : ...
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 : ...
68+ def lshift (a , b , / ): ...
69+ def mod (a , b , / ): ...
70+ @overload
71+ def mul (a : SupportsMul [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
72+ @overload
73+ def mul (a : _T_contra , b : SupportsRMul [_T_contra , _T_co ], / ) -> _T_co : ...
74+ def matmul (a , b , / ): ...
7175def neg (a : _SupportsNeg [_T_co ], / ) -> _T_co : ...
72- def or_ (a : Any , b : Any , / ) -> Any : ...
76+ def or_ (a , b , / ): ...
7377def pos (a : _SupportsPos [_T_co ], / ) -> _T_co : ...
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 : ...
78+ def pow (a , b , / ): ...
79+ def rshift (a , b , / ): ...
80+ def sub (a , b , / ): ...
81+ def truediv (a , b , / ): ...
82+ def xor (a , b , / ): ...
7983def concat (a : Sequence [_T ], b : Sequence [_T ], / ) -> Sequence [_T ]: ...
8084def contains (a : Container [object ], b : object , / ) -> bool : ...
8185def countOf (a : Iterable [object ], b : object , / ) -> int : ...
@@ -97,20 +101,20 @@ def setitem(a: MutableSequence[_T], b: slice[int | None], c: Sequence[_T], /) ->
97101@overload
98102def setitem (a : MutableMapping [_K , _V ], b : _K , c : _V , / ) -> None : ...
99103def length_hint (obj : object , default : int = 0 , / ) -> int : ...
100- def iadd (a : Any , b : Any , / ) -> Any : ...
101- def iand (a : Any , b : Any , / ) -> Any : ...
102- def iconcat (a : Any , b : Any , / ) -> Any : ...
103- def ifloordiv (a : Any , b : Any , / ) -> Any : ...
104- def ilshift (a : Any , b : Any , / ) -> Any : ...
105- def imod (a : Any , b : Any , / ) -> Any : ...
106- def imul (a : Any , b : Any , / ) -> Any : ...
107- def imatmul (a : Any , b : Any , / ) -> Any : ...
108- def ior (a : Any , b : Any , / ) -> Any : ...
109- def ipow (a : Any , b : Any , / ) -> Any : ...
110- def irshift (a : Any , b : Any , / ) -> Any : ...
111- def isub (a : Any , b : Any , / ) -> Any : ...
112- def itruediv (a : Any , b : Any , / ) -> Any : ...
113- def ixor (a : Any , b : Any , / ) -> Any : ...
104+ def iadd (a , b , / ): ...
105+ def iand (a , b , / ): ...
106+ def iconcat (a , b , / ): ...
107+ def ifloordiv (a , b , / ): ...
108+ def ilshift (a , b , / ): ...
109+ def imod (a , b , / ): ...
110+ def imul (a , b , / ): ...
111+ def imatmul (a , b , / ): ...
112+ def ior (a , b , / ): ...
113+ def ipow (a , b , / ): ...
114+ def irshift (a , b , / ): ...
115+ def isub (a , b , / ): ...
116+ def itruediv (a , b , / ): ...
117+ def ixor (a , b , / ): ...
114118
115119if sys .version_info >= (3 , 11 ):
116120 def call (obj : Callable [_P , _R ], / , * args : _P .args , ** kwargs : _P .kwargs ) -> _R : ...
0 commit comments