diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-12 14:31:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 14:31:26 (GMT) |
commit | 8208657f3d6398817f7dd6e5160ea037840e562f (patch) | |
tree | e9c8c4fcf68ad8d1a093f012ca18bfdcb9d3c1b6 /Misc | |
parent | 778d094126f8975a9823ed7da1a630e29bb75bf0 (diff) | |
download | cpython-8208657f3d6398817f7dd6e5160ea037840e562f.zip cpython-8208657f3d6398817f7dd6e5160ea037840e562f.tar.gz cpython-8208657f3d6398817f7dd6e5160ea037840e562f.tar.bz2 |
[3.12] gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196) (#109297)
gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196)
Fixes GH-109118. Fixes GH-109194.
(cherry picked from commit b88d9e75f68f102aca45fa62e2b0e2e2ff46d810)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-09-09-12-49-46.gh-issue-109118.gx0X4h.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-09-09-12-49-46.gh-issue-109118.gx0X4h.rst b/Misc/NEWS.d/next/Core and Builtins/2023-09-09-12-49-46.gh-issue-109118.gx0X4h.rst new file mode 100644 index 0000000..87069c8 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-09-09-12-49-46.gh-issue-109118.gx0X4h.rst @@ -0,0 +1,2 @@ +Disallow nested scopes (lambdas, generator expressions, and comprehensions) +within PEP 695 annotation scopes that are nested within classes. |