| 1 |
# Builtins stub used to support *args, **kwargs. |
| 2 |
|
| 3 |
import _typeshed |
| 4 |
from typing import TypeVar, Generic, Iterable, Sequence, Tuple, Dict, Any, overload, Mapping |
| 5 |
|
| 6 |
Tco = TypeVar('Tco', covariant=True) |
| 7 |
T = TypeVar('T') |
| 8 |
S = TypeVar('S') |
| 9 |
|
| 10 |
class object: |
| 11 |
def __init__(self) -> None: pass |
| 12 |
def __eq__(self, o: object) -> bool: pass |
| 13 |
def __ne__(self, o: object) -> bool: pass |
| 14 |
|
| 15 |
class type: |
| 16 |
@overload |
| 17 |
def __init__(self, o: object) -> None: pass |
| 18 |
@overload |
| 19 |
def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: pass |
| 20 |
def __call__(self, *args: Any, **kwargs: Any) -> Any: pass |
| 21 |
|
| 22 |
class tuple(Iterable[Tco], Generic[Tco]): pass |
| 23 |
|
| 24 |
class dict(Mapping[T, S], Generic[T, S]): pass |
| 25 |
|
| 26 |
class list(Sequence[T], Generic[T]): pass |
| 27 |
|
| 28 |
class int: |
| 29 |
def __eq__(self, o: object) -> bool: pass |
| 30 |
class float: pass |
| 31 |
class str: pass |
| 32 |
class bytes: pass |
| 33 |
class bool: pass |
| 34 |
class function: pass |
| 35 |
class ellipsis: pass |