Files
typeshed/stdlib/3.4/enum.pyi
2016-09-29 09:48:43 -07:00

21 lines
522 B
Python

from typing import List, Any, TypeVar
class Enum:
def __new__(cls, value: Any) -> None: ...
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
def __dir__(self) -> List[str]: ...
def __format__(self, format_spec: str) -> str: ...
def __hash__(self) -> Any: ...
def __reduce_ex__(self, proto: Any) -> Any: ...
name = ... # type: str
value = ... # type: Any
class IntEnum(int, Enum):
value = ... # type: int
_T = TypeVar('_T')
def unique(enumeration: _T) -> _T: ...