11import sys
2- from _typeshed import SupportsGetItem , SupportsMul , SupportsRMul
2+ from _typeshed import SupportsAdd , SupportsGetItem , SupportsMul , SupportsRAdd , SupportsRMul , SupportsRSub , SupportsSub
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
@@ -59,7 +59,10 @@ def truth(a: object, /) -> bool: ...
5959def is_ (a : object , b : object , / ) -> bool : ...
6060def is_not (a : object , b : object , / ) -> bool : ...
6161def abs (a : SupportsAbs [_T ], / ) -> _T : ...
62- def add (a , b , / ): ...
62+ @overload
63+ def add (a : SupportsAdd [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
64+ @overload
65+ def add (a : _T_contra , b : SupportsRAdd [_T_contra , _T_co ], / ) -> _T_co : ...
6366def and_ (a , b , / ): ...
6467def floordiv (a , b , / ): ...
6568def index (a : SupportsIndex , / ) -> int : ...
@@ -77,7 +80,10 @@ def or_(a, b, /): ...
7780def pos (a : _SupportsPos [_T_co ], / ) -> _T_co : ...
7881def pow (a , b , / ): ...
7982def rshift (a , b , / ): ...
80- def sub (a , b , / ): ...
83+ @overload
84+ def sub (a : SupportsSub [_T_contra , _T_co ], b : _T_contra , / ) -> _T_co : ...
85+ @overload
86+ def sub (a : _T_contra , b : SupportsRSub [_T_contra , _T_co ], / ) -> _T_co : ...
8187def truediv (a , b , / ): ...
8288def xor (a , b , / ): ...
8389def concat (a : Sequence [_T ], b : Sequence [_T ], / ) -> Sequence [_T ]: ...
0 commit comments