Add missing int.__index__() signature (#2335)

This has been present since Python 2.5.
This commit is contained in:
Omar Sandoval
2018-07-16 15:30:06 -07:00
committed by Jelle Zijlstra
parent 7d3ec1e0be
commit 42db5ad4f7
3 changed files with 3 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ class int:
def __abs__(self) -> int: ...
def __hash__(self) -> int: ...
def __nonzero__(self) -> bool: ...
def __index__(self) -> int: ...
class float:
def __init__(self, x: Union[SupportsFloat, str, unicode, bytearray] = ...) -> None: ...

View File

@@ -139,6 +139,7 @@ class int:
def __abs__(self) -> int: ...
def __hash__(self) -> int: ...
def __nonzero__(self) -> bool: ...
def __index__(self) -> int: ...
class float:
def __init__(self, x: Union[SupportsFloat, str, unicode, bytearray] = ...) -> None: ...

View File

@@ -158,6 +158,7 @@ class int:
def __abs__(self) -> int: ...
def __hash__(self) -> int: ...
def __bool__(self) -> bool: ...
def __index__(self) -> int: ...
class float:
def __init__(self, x: Union[SupportsFloat, str, bytes] = ...) -> None: ...