diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-06-17 15:01:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 15:01:49 (GMT) |
commit | 7c47f93dff878bdc43f5162dd878cbb375711570 (patch) | |
tree | 7b02b412d2bc0f718d9df2912fa0b6cd66205de1 /Misc/NEWS.d/next | |
parent | 03b89e3a3d155a06827f58d51238a731d8800cc9 (diff) | |
download | cpython-7c47f93dff878bdc43f5162dd878cbb375711570.zip cpython-7c47f93dff878bdc43f5162dd878cbb375711570.tar.gz cpython-7c47f93dff878bdc43f5162dd878cbb375711570.tar.bz2 |
[3.13] gh-119933: Improve ``SyntaxError`` message for invalid type parameters expressions (GH-119976) (#120641)
(cherry picked from commit 4bf17c381fb7b465f0f26aecb94a6c54cf9be2d3)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2024-06-03-13-48-44.gh-issue-119933.Kc0HG5.rst | 4 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-05-11-39-21.gh-issue-119933.ooJXQV.rst | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-06-03-13-48-44.gh-issue-119933.Kc0HG5.rst b/Misc/NEWS.d/next/Core and Builtins/2024-06-03-13-48-44.gh-issue-119933.Kc0HG5.rst new file mode 100644 index 0000000..513a020 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-06-03-13-48-44.gh-issue-119933.Kc0HG5.rst @@ -0,0 +1,4 @@ +Improve :exc:`SyntaxError` messages for invalid expressions in a type +parameters bound, a type parameter constraint tuple or a default type +parameter. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2024-06-05-11-39-21.gh-issue-119933.ooJXQV.rst b/Misc/NEWS.d/next/Library/2024-06-05-11-39-21.gh-issue-119933.ooJXQV.rst new file mode 100644 index 0000000..475da88 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-05-11-39-21.gh-issue-119933.ooJXQV.rst @@ -0,0 +1,3 @@ +Add the :class:`symtable.SymbolTableType` enumeration to represent the +possible outputs of the :class:`symtable.SymbolTable.get_type` method. Patch +by Bénédikt Tran. |