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

@@ -24,11 +24,8 @@ class Enum(metaclass=EnumMeta):
name = ... # type: str
value = ... # type: Any
_T1 = TypeVar('_T1')
class IntEnum(int, Enum): # type: ignore
class IntEnum(int, Enum):
value = ... # type: int
def __new__(cls: Type[_T1], value: Any) -> _T1: ...
def unique(enumeration: _S) -> _S: ...