diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-03-05 09:14:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 09:14:18 (GMT) |
commit | a29998a06bf75264c3faaeeec4584a5f75b45a1f (patch) | |
tree | 75d9bd8f575bb217df23f948564a1fe39e76e862 /Misc | |
parent | ffcc450a9b8b6927549b501eff7ac14abc238448 (diff) | |
download | cpython-a29998a06bf75264c3faaeeec4584a5f75b45a1f.zip cpython-a29998a06bf75264c3faaeeec4584a5f75b45a1f.tar.gz cpython-a29998a06bf75264c3faaeeec4584a5f75b45a1f.tar.bz2 |
gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with empty string arg (#116341)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-03-05-02-09-18.gh-issue-116325.FmlBYv.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-03-05-02-09-18.gh-issue-116325.FmlBYv.rst b/Misc/NEWS.d/next/Library/2024-03-05-02-09-18.gh-issue-116325.FmlBYv.rst new file mode 100644 index 0000000..aec4ee7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-03-05-02-09-18.gh-issue-116325.FmlBYv.rst @@ -0,0 +1,2 @@ +:mod:`typing`: raise :exc:`SyntaxError` instead of :exc:`AttributeError` +on forward references as empty strings. |