gh-116325: Raise SyntaxError on ForwardRef with empty string arg#116341
gh-116325: Raise SyntaxError on ForwardRef with empty string arg#116341AlexWaygood merged 2 commits intopython:mainfrom
SyntaxError on ForwardRef with empty string arg#116341Conversation
AlexWaygood
left a comment
There was a problem hiding this comment.
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)
Uh oh!
There was an error while loading. Please reload this page.