Add NoReturn type to typing stubs (#1496)

This commit is contained in:
Michael Lee
2017-07-20 21:24:34 -07:00
committed by Jelle Zijlstra
parent f6b013ba52
commit 6d3024fb19
2 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,11 @@ ClassVar: _SpecialForm = ...
class GenericMeta(type): ...
# 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]
# Type aliases and type constructors
class TypeAlias: