diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-13 21:41:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 21:41:14 (GMT) |
commit | d4174fa7cab8883e7db3f4b810533e0d203c3c76 (patch) | |
tree | bb2317755e9b16a18553324790f104445a3c2939 /Misc/NEWS.d/next | |
parent | d5ad3b7fc8f5c02210b19bf833582f9f89010658 (diff) | |
download | cpython-d4174fa7cab8883e7db3f4b810533e0d203c3c76.zip cpython-d4174fa7cab8883e7db3f4b810533e0d203c3c76.tar.gz cpython-d4174fa7cab8883e7db3f4b810533e0d203c3c76.tar.bz2 |
[3.13] gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotations` (GH-120270) (#120474)
gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotations` (GH-120270)
(cherry picked from commit 42351c3b9a357ec67135b30ed41f59e6f306ac52)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-08-15-15-29.gh-issue-114053.WQLAFG.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-08-15-15-29.gh-issue-114053.WQLAFG.rst b/Misc/NEWS.d/next/Library/2024-06-08-15-15-29.gh-issue-114053.WQLAFG.rst new file mode 100644 index 0000000..be49577 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-08-15-15-29.gh-issue-114053.WQLAFG.rst @@ -0,0 +1,4 @@ +Fix erroneous :exc:`NameError` when calling :func:`inspect.get_annotations` +with ``eval_str=True``` on a class that made use of :pep:`695` type +parameters in a module that had ``from __future__ import annotations`` at +the top of the file. Patch by Alex Waygood. |