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

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

No files matched your search

+1
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: ...
+1
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: ...
+1
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: ...