-
-
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-94192: Fix error for dictionary literals with invalid expression as value. #94304
Conversation
Should've run patchcheck 😅 |
Thanks a lot for the PR @wookie184 |
Thanks @wookie184 for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
…sion as value. (pythonGH-94304) * Fix error for dictionary literals with invalid expression as value. * Remove trailing whitespace (cherry picked from commit 8c237a7) Co-authored-by: wookie184 <[email protected]>
Sorry, @wookie184 and @pablogsal, I could not cleanly backport this to |
GH-94308 is a backport of this pull request to the 3.11 branch. |
@wookie184 Can you do the backport to 3.10 using cherry-picker? |
…s value. (GH-94304) * Fix error for dictionary literals with invalid expression as value. * Remove trailing whitespace (cherry picked from commit 8c237a7) Co-authored-by: wookie184 <[email protected]>
… expression as value. (pythonGH-94304) * Fix error for dictionary literals with invalid expression as value. * Remove trailing whitespace. (cherry picked from commit 8c237a7) Co-authored-by: wookie184 <[email protected]>
GH-94344 is a backport of this pull request to the 3.10 branch. |
…ssion as value. (GH-94304) (#94344) Co-authored-by: wookie184 <[email protected]>
Closes #94192
I just added
&('}'|',')
which is the same as what was already done on line 1312. I couldn't think of any cases this makes worse and the existing tests seemed to run the same so I think this should be fine.