add __new__ to tuple in python2 (#2304)

this solves #2091 when checking Python 2 code (#2092 only fixed it for Python 3).
This commit is contained in:
Steven Karas
2018-07-03 18:18:01 +03:00
committed by Guido van Rossum
parent 9229dd8f0c
commit d4c15011e4
2 changed files with 2 additions and 0 deletions

View File

@@ -515,6 +515,7 @@ class slice(object):
def indices(self, len: int) -> Tuple[int, int, int]: ...
class tuple(Sequence[_T_co], Generic[_T_co]):
def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
def __len__(self) -> int: ...
def __contains__(self, x: object) -> bool: ...