diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 50bfb5ad7..ac6f4f19e 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -139,6 +139,7 @@ class int: def __neg__(self) -> int: ... def __pos__(self) -> int: ... def __invert__(self) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... def __eq__(self, x: object) -> bool: ... def __ne__(self, x: object) -> bool: ... @@ -187,6 +188,7 @@ class float: def __rmod__(self, x: float) -> float: ... def __rdivmod__(self, x: float) -> Tuple[float, float]: ... def __rpow__(self, x: float) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... def __eq__(self, x: object) -> bool: ... def __ne__(self, x: object) -> bool: ... @@ -328,6 +330,7 @@ class unicode(basestring, Sequence[unicode]): def __int__(self) -> int: ... def __float__(self) -> float: ... def __hash__(self) -> int: ... + def __getnewargs__(self) -> Tuple[unicode]: ... class str(basestring, Sequence[str]): def __init__(self, object: object = ...) -> None: ... @@ -418,6 +421,7 @@ class str(basestring, Sequence[str]): def __gt__(self, x: unicode) -> bool: ... def __ge__(self, x: unicode) -> bool: ... def __mod__(self, x: Any) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... class bytearray(MutableSequence[int]): @overload @@ -524,6 +528,7 @@ class bool(int): def __rxor__(self, x: bool) -> bool: ... @overload # type: ignore def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... class slice(object): start = ... # type: Optional[int] diff --git a/stdlib/2/builtins.pyi b/stdlib/2/builtins.pyi index 50bfb5ad7..ac6f4f19e 100644 --- a/stdlib/2/builtins.pyi +++ b/stdlib/2/builtins.pyi @@ -139,6 +139,7 @@ class int: def __neg__(self) -> int: ... def __pos__(self) -> int: ... def __invert__(self) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... def __eq__(self, x: object) -> bool: ... def __ne__(self, x: object) -> bool: ... @@ -187,6 +188,7 @@ class float: def __rmod__(self, x: float) -> float: ... def __rdivmod__(self, x: float) -> Tuple[float, float]: ... def __rpow__(self, x: float) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... def __eq__(self, x: object) -> bool: ... def __ne__(self, x: object) -> bool: ... @@ -328,6 +330,7 @@ class unicode(basestring, Sequence[unicode]): def __int__(self) -> int: ... def __float__(self) -> float: ... def __hash__(self) -> int: ... + def __getnewargs__(self) -> Tuple[unicode]: ... class str(basestring, Sequence[str]): def __init__(self, object: object = ...) -> None: ... @@ -418,6 +421,7 @@ class str(basestring, Sequence[str]): def __gt__(self, x: unicode) -> bool: ... def __ge__(self, x: unicode) -> bool: ... def __mod__(self, x: Any) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... class bytearray(MutableSequence[int]): @overload @@ -524,6 +528,7 @@ class bool(int): def __rxor__(self, x: bool) -> bool: ... @overload # type: ignore def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... class slice(object): start = ... # type: Optional[int] diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 844c8e4d7..fd8568d9e 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -158,6 +158,7 @@ class int: def __pos__(self) -> int: ... def __invert__(self) -> int: ... def __round__(self, ndigits: Optional[int] = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... def __eq__(self, x: object) -> bool: ... def __ne__(self, x: object) -> bool: ... @@ -204,6 +205,7 @@ class float: def __rmod__(self, x: float) -> float: ... def __rdivmod__(self, x: float) -> Tuple[float, float]: ... def __rpow__(self, x: float) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... @overload def __round__(self) -> int: ... @overload @@ -340,6 +342,7 @@ class str(Sequence[str]): def __str__(self) -> str: ... def __repr__(self) -> str: ... def __hash__(self) -> int: ... + def __getnewargs__(self) -> Tuple[str]: ... class bytes(ByteString): @overload @@ -419,6 +422,7 @@ class bytes(ByteString): def __le__(self, x: bytes) -> bool: ... def __gt__(self, x: bytes) -> bool: ... def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... class bytearray(MutableSequence[int], ByteString): @overload @@ -566,6 +570,7 @@ class bool(int): def __rxor__(self, x: bool) -> bool: ... @overload # type: ignore def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... class slice: start = ... # type: Optional[int]