mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
Add NoReturn type to typing stubs (#1496)
This commit is contained in:
1 parent
f6b013ba52
commit
6d3024fb19
2 files changed
+10
No files matched your search
@@ -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:
|
||||
|
||||
@@ -25,6 +25,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