mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
Use SupportsIndex in operator.index (#6460)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user