summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-13 21:41:14 (GMT)
committerGitHub <noreply@github.com>2024-06-13 21:41:14 (GMT)
commitd4174fa7cab8883e7db3f4b810533e0d203c3c76 (patch)
treebb2317755e9b16a18553324790f104445a3c2939 /Misc/NEWS.d/next/Library
parentd5ad3b7fc8f5c02210b19bf833582f9f89010658 (diff)
downloadcpython-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/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2024-06-08-15-15-29.gh-issue-114053.WQLAFG.rst4
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.