Allow NoReturn
to appear outside of function return type annotations
#5
Labels
NoReturn
to appear outside of function return type annotations
#5
I would like request that the typing council consider amending the typing spec to allow
NoReturn
to appear in locations other than return type annotations. It is equivalent toNever
, and the two types should be completely interchangeable.This was discussed in the python/typing forum, and there were no objections to the change.
All four major type checkers already treat
NoReturn
in the manner consistent with the proposed change, so this would bring the spec in conformance with the type checker implementations.I've prepared this PR with the proposed change to the typing spec.
The text was updated successfully, but these errors were encountered: