Skip to content

Fix unnecessary nesting when wrapping long dict#4135

Merged
JelleZijlstra merged 3 commits intopsf:mainfrom
hauntsaninja:wrap-long-val
Jan 20, 2024
Merged

Fix unnecessary nesting when wrapping long dict#4135
JelleZijlstra merged 3 commits intopsf:mainfrom
hauntsaninja:wrap-long-val

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.

@github-actions
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
@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