Skip to content

Commit 083a1a8

Browse files
ddfishergvanrossum
authored andcommitted
Add NoReturn to mypy_extensions (#2637)
1 parent cd32c1b commit 083a1a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/mypy_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,7 @@ class Point2D(TypedDict):
9191
The latter syntax is only supported in Python 3.6+, while two other
9292
syntax forms work for Python 2.7 and 3.2+
9393
"""
94+
95+
96+
# Return type that indicates a function does not return
97+
class NoReturn: pass

0 commit comments

Comments
 (0)