diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2022-04-25 13:40:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 13:40:18 (GMT) |
commit | 93d280141c369fd1906569ff605148b6e22f6a43 (patch) | |
tree | 01714d7314fffffdac59f85006d0b23759a22044 /Misc | |
parent | 9ff2f12c876289a7192fd1672ed08a1876a51e17 (diff) | |
download | cpython-93d280141c369fd1906569ff605148b6e22f6a43.zip cpython-93d280141c369fd1906569ff605148b6e22f6a43.tar.gz cpython-93d280141c369fd1906569ff605148b6e22f6a43.tar.bz2 |
gh-90633: Improve error and docs for typing.assert_never (#91720)
Closes #90633
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-19-19-50-10.gh-issue-90633.Youov0.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-19-19-50-10.gh-issue-90633.Youov0.rst b/Misc/NEWS.d/next/Library/2022-04-19-19-50-10.gh-issue-90633.Youov0.rst new file mode 100644 index 0000000..d86c2d3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-19-19-50-10.gh-issue-90633.Youov0.rst @@ -0,0 +1,2 @@ +Include the passed value in the exception thrown by +:func:`typing.assert_never`. Patch by Jelle Zijlstra. |