| 1 |
from typing import Tuple, TypeVar, Generic, Union, cast, Any, Type |
| 2 |
|
| 3 |
T = TypeVar('T') |
| 4 |
|
| 5 |
class object: |
| 6 |
def __init__(self) -> None: pass |
| 7 |
|
| 8 |
class type: |
| 9 |
def __init__(self, x) -> None: pass |
| 10 |
def __or__(self, other: type) -> type: pass |
| 11 |
|
| 12 |
class tuple(Generic[T]): pass |
| 13 |
|
| 14 |
class function: pass |
| 15 |
|
| 16 |
def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ...]]) -> bool: pass |
| 17 |
def issubclass(x: object, t: Union[Type[object], Tuple[Type[object], ...]]) -> bool: pass |
| 18 |
def hasattr(x: object, name: str) -> bool: pass |
| 19 |
|
| 20 |
class int: |
| 21 |
def __add__(self, other: 'int') -> 'int': pass |
| 22 |
class float: pass |
| 23 |
class bool(int): pass |
| 24 |
class str: |
| 25 |
def __new__(cls, o: object = ...) -> str: pass |
| 26 |
def __add__(self, other: 'str') -> 'str': pass |
| 27 |
class ellipsis: pass |
| 28 |
|
| 29 |
NotImplemented = cast(Any, None) |
| 30 |
|
| 31 |
class dict: pass |