Use SupportsIndex in operator.index (#6460)

This commit is contained in:
Alex Waygood
2021-11-30 17:38:34 +00:00
committed by GitHub
parent 93cb52b929
commit c3753d3913

View File

@@ -48,7 +48,7 @@ def abs(__a: SupportsAbs[_T]) -> _T: ...
def add(__a: Any, __b: Any) -> Any: ...
def and_(__a: Any, __b: Any) -> Any: ...
def floordiv(__a: Any, __b: Any) -> Any: ...
def index(__a: Any) -> int: ...
def index(__a: SupportsIndex) -> int: ...
def inv(__a: _SupportsInversion[_T_co]) -> _T_co: ...
def invert(__a: _SupportsInversion[_T_co]) -> _T_co: ...
def lshift(__a: Any, __b: Any) -> Any: ...