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: Don't remove parenthesis around long dictionary values #4377

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cobaltt7
Copy link
Contributor

@cobaltt7 cobaltt7 commented Jun 6, 2024

Description

Resolves #4158 (string_processing and wrap_long_dict_values_in_parens)
Resolves #3452 (wrap_long_dict_values_in_parens)

Still need to move to the preview style & add changelog entry

Checklist - did you ...

  • [n] Add an entry in CHANGES.md if necessary?
  • [y] Add / update tests if necessary?
  • [-] Add new / update outdated documentation?

Comment on lines 99 to 101
loop.run_in_executor(
xx_xxxxxxxxxxxxxxxxx_xxxxx_xxxxxxx_xxxxxxxxxxxxxx_xxxxx_xxxxx
): src,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is currently failing due to #1657, will try to fix that in a separate PR before this one is merged

Copy link
Contributor Author

@cobaltt7 cobaltt7 Jun 12, 2024

Choose a reason for hiding this comment

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

Also why format_self fails:

asyncio.ensure_future(
loop.run_in_executor(
executor, format_file_in_place, src, fast, mode, write_back, lock
)
): src

Copy link

github-actions bot commented Jun 6, 2024

diff-shades reports zero changes comparing this PR (9140aa2) to main (b677a64).


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

@cobaltt7 cobaltt7 changed the title fix(preview): Don't remove parenthesis around long dictionary values fix: Don't remove parenthesis around long dictionary values Jun 14, 2024
Signed-off-by: cobalt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant