|
1 | 1 | # Stubs for builtins (Python 3)
|
2 | 2 |
|
3 | 3 | from typing import (
|
4 |
| - TypeVar, Iterator, Iterable, overload, |
| 4 | + TypeVar, Iterator, Iterable, overload, Type, |
5 | 5 | Sequence, MutableSequence, Mapping, MutableMapping, Tuple, List, Any, Dict, Callable, Generic,
|
6 | 6 | Set, AbstractSet, MutableSet, Sized, Reversible, SupportsInt, SupportsFloat, SupportsBytes,
|
7 | 7 | SupportsAbs, SupportsRound, IO, Union, ItemsView, KeysView, ValuesView, ByteString, Optional
|
@@ -57,7 +57,7 @@ class type:
|
57 | 57 | @overload
|
58 | 58 | def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
|
59 | 59 | def __call__(self, *args: Any, **kwds: Any) -> Any: ...
|
60 |
| - def __subclasses__(self) -> List[type]: ... |
| 60 | + def __subclasses__(self: Type[_T]) -> List[Type[_T]]: ... |
61 | 61 | # Note: the documentation doesnt specify what the return type is, the standard
|
62 | 62 | # implementation seems to be returning a list.
|
63 | 63 | def mro(self) -> List[type]: ...
|
|
0 commit comments