-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-116325: Raise SyntaxError
on ForwardRef with empty string arg
#116341
Conversation
sobolevn
commented
Mar 4, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Unexpected IndexError in typing.List[''] #116325
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one where I guess it's borderline between a feature and a bug... I don't have a strong opinion either way on whether it should be backported!
(Thanks!) |
I think that it should be. I categorize this as a bug, because 3.11 still has this bug: https://github.com/python/cpython/blob/3.11/Lib/typing.py#L873 |
Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…ardRef with empty string arg (pythonGH-116341) (cherry picked from commit a29998a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-116347 is a backport of this pull request to the 3.12 branch. |
…ardRef with empty string arg (pythonGH-116341) (cherry picked from commit a29998a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-116348 is a backport of this pull request to the 3.11 branch. |
…ardRef with empty string arg (python#116341)
…ardRef with empty string arg (python#116341)