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

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

View File

@@ -92,11 +92,6 @@ class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
@overload
def __init__(self, x: Union[str, unicode, bytearray], base: int = ...) -> None: ...
@overload
def __new__(cls: Type[_T1], x: SupportsInt = ...) -> _T1: ...
@overload
def __new__(cls: Type[_T1], x: Union[str, unicode, bytearray], base: int = ...) -> _T1: ...
def bit_length(self) -> int: ...
def __add__(self, x: int) -> int: ...
@@ -307,7 +302,6 @@ class unicode(basestring, Sequence[unicode]):
class str(basestring, Sequence[str]):
def __init__(self, object: object = ...) -> None: ...
def __new__(cls: Type[_T1], object: object = ...) -> _T1: ...
def capitalize(self) -> str: ...
def center(self, width: int, fillchar: str = ...) -> str: ...
def count(self, x: unicode, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...