From 113ade07caa1dc0e2f2913b6b5fe540d414b7829 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Thu, 3 May 2018 12:54:24 +0200 Subject: [PATCH] Add __new__ to tuple stub Closes: #2091 Apply suggestions from https://github.com/python/typeshed/pull/2092 --- stdlib/3/builtins.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index a8650269fed4..ecd664602cea 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -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: ...