mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add __new__ to tuple stub (#2092)
Closes: #2091 Apply suggestions from https://github.com/python/typeshed/pull/2092
This commit is contained in:
committed by
Jelle Zijlstra
parent
2df4a32cf5
commit
d289c20260
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user