| 1 |
from typing import ( |
| 2 |
Iterable, Iterator, TypeVar, List, Mapping, overload, Tuple, Set, Union, Generic, Sequence |
| 3 |
) |
| 4 |
import types |
| 5 |
|
| 6 |
class object: |
| 7 |
def __init__(self) -> None: pass |
| 8 |
def __eq__(self, other: object) -> bool: pass |
| 9 |
|
| 10 |
class type: |
| 11 |
def __init__(self, x) -> None: pass |
| 12 |
|
| 13 |
class function: pass |
| 14 |
class classmethod: pass |
| 15 |
|
| 16 |
class ellipsis: pass |
| 17 |
EllipsisType = ellipsis |
| 18 |
Ellipsis = ellipsis() |
| 19 |
|
| 20 |
def isinstance(x: object, t: Union[type, Tuple]) -> bool: pass |
| 21 |
def issubclass(x: object, t: Union[type, Tuple]) -> bool: pass |
| 22 |
def hasattr(x: object, name: str) -> bool: pass |
| 23 |
|
| 24 |
class int: |
| 25 |
def __add__(self, x: int) -> int: pass |
| 26 |
class float: pass |
| 27 |
class bool(int): pass |
| 28 |
class str: |
| 29 |
def __add__(self, x: str) -> str: pass |
| 30 |
def __getitem__(self, x: int) -> str: pass |
| 31 |
class bytes: pass |
| 32 |
|
| 33 |
T = TypeVar('T') |
| 34 |
KT = TypeVar('KT') |
| 35 |
VT = TypeVar('VT') |
| 36 |
|
| 37 |
class tuple(Generic[T]): |
| 38 |
def __len__(self) -> int: pass |
| 39 |
|
| 40 |
class list(Sequence[T]): |
| 41 |
def __iter__(self) -> Iterator[T]: pass |
| 42 |
def __mul__(self, x: int) -> list[T]: pass |
| 43 |
def __setitem__(self, x: int, v: T) -> None: pass |
| 44 |
def __getitem__(self, x: int) -> T: pass |
| 45 |
def __add__(self, x: List[T]) -> T: pass |
| 46 |
def __contains__(self, item: object) -> bool: pass |
| 47 |
def append(self, x: T) -> None: pass |
| 48 |
def extend(self, x: Iterable[T]) -> None: pass |
| 49 |
|
| 50 |
class dict(Mapping[KT, VT]): |
| 51 |
@overload |
| 52 |
def __init__(self, **kwargs: VT) -> None: pass |
| 53 |
@overload |
| 54 |
def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None: pass |
| 55 |
def __setitem__(self, k: KT, v: VT) -> None: pass |
| 56 |
def __iter__(self) -> Iterator[KT]: pass |
| 57 |
def update(self, a: Mapping[KT, VT]) -> None: pass |
| 58 |
def items(self) -> Iterable[Tuple[KT, VT]]: pass |
| 59 |
|
| 60 |
class set(Generic[T]): |
| 61 |
def __iter__(self) -> Iterator[T]: pass |
| 62 |
def add(self, x: T) -> None: pass |
| 63 |
def discard(self, x: T) -> None: pass |
| 64 |
def update(self, x: Set[T]) -> None: pass |
| 65 |
def pop(self) -> T: pass |