mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Correct implementation of standard types besides "object" (#1340)
Per https://github.com/python/mypy/issues/2989
This commit is contained in:
committed by
Guido van Rossum
parent
4a5ff0bb11
commit
5306d6f5a7
@@ -10,13 +10,17 @@ from types import CodeType, FrameType, TracebackType
|
||||
overload = object()
|
||||
Any = object()
|
||||
TypeVar = object()
|
||||
Generic = object()
|
||||
Tuple = object()
|
||||
Callable = object()
|
||||
Type = object()
|
||||
_promote = object()
|
||||
no_type_check = object()
|
||||
ClassVar = object()
|
||||
|
||||
class _SpecialForm:
|
||||
def __getitem__(self, typeargs: Any) -> Any: ...
|
||||
|
||||
Tuple: _SpecialForm = ...
|
||||
Generic: _SpecialForm = ...
|
||||
Callable: _SpecialForm = ...
|
||||
Type: _SpecialForm = ...
|
||||
ClassVar: _SpecialForm = ...
|
||||
|
||||
class GenericMeta(type): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user