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 unnecessary nesting when wrapping long dict #4135

Merged
merged 3 commits into from Jan 20, 2024

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Dec 29, 2023

Fixes #4129

This is not ready to be reviewed, was just curious if diff-shades surfaced something

@JelleZijlstra
Copy link
Collaborator

This looks reasonable to me, do you have any concerns about it? Unfortunately diff-shades failed but I re-triggered it.

@hauntsaninja
Copy link
Collaborator Author

My main concern is that I don't yet fully understand this change that I made, so I can't yet reason about the ways in which it might be bad.

Copy link

diff-shades reports zero changes comparing this PR (bf616a8) to main (7f60f3d).


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

@JelleZijlstra
Copy link
Collaborator

diff-shades is fine, I am also running this code on an internal codebase and it looks OK. I think we should merge this.

@JelleZijlstra JelleZijlstra marked this pull request as ready for review January 20, 2024 00:30
@JelleZijlstra JelleZijlstra merged commit 995e4ad into psf:main Jan 20, 2024
45 of 46 checks passed
@hauntsaninja hauntsaninja deleted the wrap-long-val branch January 20, 2024 01:14
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.

wrap_long_dict_value_in_parens can introduce unnecessary nesting for dicts in dicts
2 participants