File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ ClassVar: _SpecialForm = ...
24
24
25
25
class GenericMeta (type ): ...
26
26
27
+ # Return type that indicates a function does not return.
28
+ # This type is equivalent to the None type, but the no-op Union is necessary to
29
+ # distinguish the None type from the None value.
30
+ NoReturn = typing .Union [None ]
31
+
27
32
# Type aliases and type constructors
28
33
29
34
class TypeAlias :
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ ClassVar: _SpecialForm = ...
25
25
26
26
class GenericMeta (type ): ...
27
27
28
+ # Return type that indicates a function does not return.
29
+ # This type is equivalent to the None type, but the no-op Union is necessary to
30
+ # distinguish the None type from the None value.
31
+ NoReturn = typing .Union [None ]
32
+
28
33
# Type aliases and type constructors
29
34
30
35
class TypeAlias :
You can’t perform that action at this time.
0 commit comments