Add __new__ to tuple stub (#2092)

Closes: #2091

Apply suggestions from https://github.com/python/typeshed/pull/2092
This commit is contained in:
Salvo 'LtWorf' Tomaselli
2018-05-10 01:30:58 +02:00
committed by Jelle Zijlstra
parent 2df4a32cf5
commit d289c20260

View File

@@ -582,6 +582,7 @@ class slice:
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: ...