| 1 |
from typing import Tuple, TypeVar, Generic, Union, Type, Sequence, Mapping |
| 2 |
from typing_extensions import Protocol |
| 3 |
|
| 4 |
T = TypeVar("T") |
| 5 |
V = TypeVar("V") |
| 6 |
|
| 7 |
class object: |
| 8 |
def __init__(self) -> None: pass |
| 9 |
|
| 10 |
class type: |
| 11 |
def __init__(self, x) -> None: pass |
| 12 |
|
| 13 |
class tuple(Sequence[T]): |
| 14 |
def __len__(self) -> int: pass |
| 15 |
|
| 16 |
class list(Sequence[T]): pass |
| 17 |
class dict(Mapping[T, V]): pass |
| 18 |
|
| 19 |
class function: pass |
| 20 |
|
| 21 |
class Sized(Protocol): |
| 22 |
def __len__(self) -> int: pass |
| 23 |
|
| 24 |
def len(__obj: Sized) -> int: ... |
| 25 |
def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ...]]) -> bool: pass |
| 26 |
|
| 27 |
class int: |
| 28 |
def __add__(self, other: int) -> int: pass |
| 29 |
def __eq__(self, other: int) -> bool: pass |
| 30 |
def __ne__(self, other: int) -> bool: pass |
| 31 |
def __lt__(self, n: int) -> bool: pass |
| 32 |
def __gt__(self, n: int) -> bool: pass |
| 33 |
def __le__(self, n: int) -> bool: pass |
| 34 |
def __ge__(self, n: int) -> bool: pass |
| 35 |
def __neg__(self) -> int: pass |
| 36 |
class float: pass |
| 37 |
class bool(int): pass |
| 38 |
class str(Sequence[str]): pass |
| 39 |
class ellipsis: pass |