| 1 |
# Minimal set of builtins required to work with Enums |
| 2 |
from typing import TypeVar, Generic, Iterator, Sequence, overload, Iterable |
| 3 |
|
| 4 |
T = TypeVar('T') |
| 5 |
|
| 6 |
class object: |
| 7 |
def __init__(self): pass |
| 8 |
|
| 9 |
class type: pass |
| 10 |
class tuple(Generic[T]): |
| 11 |
def __getitem__(self, x: int) -> T: pass |
| 12 |
|
| 13 |
class int: pass |
| 14 |
class str: |
| 15 |
def __len__(self) -> int: pass |
| 16 |
def __iter__(self) -> Iterator[str]: pass |
| 17 |
|
| 18 |
class dict: pass |
| 19 |
class ellipsis: pass |
| 20 |
|
| 21 |
class list(Sequence[T]): |
| 22 |
@overload |
| 23 |
def __init__(self) -> None: pass |
| 24 |
@overload |
| 25 |
def __init__(self, x: Iterable[T]) -> None: pass |