Skip to content
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

fix: In subscripts, treat walruses just like other binary operators #4109

Merged
merged 4 commits into from
Dec 28, 2023

Conversation

cobaltt7
Copy link
Contributor

Description

Fixes #4078. Next month when the new style is ready for release, we can obviously simplify this a bit.

Checklist - did you ...

  • Add an entry in CHANGES.md if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation? - N/A

Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
@cobaltt7
Copy link
Contributor Author

Not entirely sure why tests are failing - is my preview mode logic incorrect? What would be a better way to implement it?

cobaltt7 and others added 3 commits December 14, 2023 11:20
…/blob/main/src/black/linegen.py#L525-L529 (maybe this will fix tests??)

Signed-off-by: RedGuy12 <paul@reid-family.org>
Signed-off-by: RedGuy12 <paul@reid-family.org>
Copy link

diff-shades reports zero changes comparing this PR (30a2675) to main (8fec1c3).


What is this? | Workflow run | diff-shades documentation

@cobaltt7
Copy link
Contributor Author

Not sure if anyone's seen, but I did fix the tests.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hauntsaninja hauntsaninja merged commit c80685f into psf:main Dec 28, 2023
46 checks passed
@cobaltt7 cobaltt7 deleted the gh-4078 branch December 28, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid removing whitespace for parenthesized walrus in subscripts
2 participants