Revert "Add __new__ to str and int stubs in both Pythons. (#1352)" (#1466)

This reverts commit fed4e03e53.
This commit is contained in:
Jelle Zijlstra authored and Matthias Kramm committed 2017-07-06 14:21:54 -07:00
1 parent 1a9685c6ce
commit 16aa0651ae
4 files changed
+2 -22

No files matched your search

-10
View File
@@ -108,11 +108,6 @@ class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
@overload
def __init__(self, x: Union[str, bytes], base: int = ...) -> None: ...
@overload
def __new__(cls: Type[_T1], x: SupportsInt = ...) -> _T1: ...
@overload
def __new__(cls: Type[_T1], x: Union[str, bytes], base: int = ...) -> _T1: ...
def bit_length(self) -> int: ...
def to_bytes(self, length: int, byteorder: str, *, signed: bool = ...) -> bytes: ...
@classmethod
@@ -240,11 +235,6 @@ class str(Sequence[str]):
@overload
def __init__(self, o: bytes, encoding: str = ..., errors: str = ...) -> None: ...
@overload
def __new__(cls: Type[_T1], o: object = ...) -> _T1: ...
@overload
def __new__(cls: Type[_T1], o: bytes, encoding: str = ..., errors: str = ...) -> _T1: ...
def capitalize(self) -> str: ...
def casefold(self) -> str: ...
def center(self, width: int, fillchar: str = ' ') -> str: ...