mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
Add NoReturn type to typing stubs (#1496)
This commit is contained in:
committed by
Jelle Zijlstra
parent
f6b013ba52
commit
6d3024fb19
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user