]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115165: Fix `typing.Annotated` for immutable types (#115213)
authordave-shawley <daveshawley@gmail.com>
Fri, 9 Feb 2024 22:11:37 +0000 (17:11 -0500)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 22:11:37 +0000 (22:11 +0000)
commit564385612cdf72c2fa8e629a68225fb2cd3b3d99
treecbb67164d09ecaa774383a98306e9a3ffd497542
parenta3af3cb4f424034b56404704fdf8f18e8c0a9982
gh-115165: Fix `typing.Annotated` for immutable types (#115213)

The return value from an annotated callable can raise any exception from
__setattr__ for the `__orig_class__` property.
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2024-02-09-07-20-16.gh-issue-115165.yfJLXA.rst [new file with mode: 0644]