mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-04 00:52:44 +08:00
committed by
Łukasz Langa
parent
93bb4604cb
commit
2cb8e184cc
7
third_party/2and3/mypy_extensions.pyi
vendored
7
third_party/2and3/mypy_extensions.pyi
vendored
@@ -1,6 +1,11 @@
|
||||
from typing import Dict, Type, TypeVar
|
||||
from typing import Dict, Type, TypeVar, Union
|
||||
|
||||
T = TypeVar('T')
|
||||
|
||||
|
||||
def TypedDict(typename: str, fields: Dict[str, Type[T]]) -> Type[dict]: ...
|
||||
|
||||
# Return type that indicates a function does not return.
|
||||
# This type is equivalent to the None type, but the no-op Union is necessary to
|
||||
# distinguish the None type from the None value.
|
||||
NoReturn = Union[None]
|
||||
|
||||
Reference in New Issue
Block a user