| 1 |
TypeVar = 0 |
| 2 |
Generic = 0 |
| 3 |
Any = object() |
| 4 |
overload = 0 |
| 5 |
Type = 0 |
| 6 |
Literal = 0 |
| 7 |
Optional = 0 |
| 8 |
Self = 0 |
| 9 |
Tuple = 0 |
| 10 |
ClassVar = 0 |
| 11 |
Callable = 0 |
| 12 |
|
| 13 |
T = TypeVar('T') |
| 14 |
T_co = TypeVar('T_co', covariant=True) |
| 15 |
KT = TypeVar('KT') |
| 16 |
|
| 17 |
class Iterable(Generic[T_co]): pass |
| 18 |
class Iterator(Iterable[T_co]): pass |
| 19 |
class Sequence(Iterable[T_co]): pass |
| 20 |
class Mapping(Iterable[KT], Generic[KT, T_co]): |
| 21 |
def keys(self) -> Iterable[KT]: pass # Approximate return type |
| 22 |
def __getitem__(self, key: KT) -> T_co: pass |
| 23 |
|
| 24 |
def override(__arg: T) -> T: ... |
| 25 |
|
| 26 |
class _SpecialForm: pass |