| 1 |
# builtins stub used in for statement test cases |
| 2 |
|
| 3 |
from typing import TypeVar, Generic, Iterable, Iterator, Generator |
| 4 |
from abc import abstractmethod, ABCMeta |
| 5 |
|
| 6 |
t = TypeVar('t') |
| 7 |
|
| 8 |
class object: |
| 9 |
def __init__(self) -> None: pass |
| 10 |
|
| 11 |
class type: pass |
| 12 |
class tuple(Generic[t]): |
| 13 |
def __iter__(self) -> Iterator[t]: pass |
| 14 |
class function: pass |
| 15 |
class ellipsis: pass |
| 16 |
class bool: pass |
| 17 |
class int: pass # for convenience |
| 18 |
class float: pass # for convenience |
| 19 |
class str: # for convenience |
| 20 |
def upper(self) -> str: ... |
| 21 |
|
| 22 |
class list(Iterable[t], Generic[t]): |
| 23 |
def __iter__(self) -> Iterator[t]: pass |
| 24 |
class dict: pass |