Skip to content

Comments

Consistently format async statements similar to their non-async version.#3609

Merged
JelleZijlstra merged 3 commits intopsf:mainfrom
yilei:async_cm
Mar 16, 2023
Merged

Consistently format async statements similar to their non-async version.#3609
JelleZijlstra merged 3 commits intopsf:mainfrom
yilei:async_cm

Conversation

@yilei
Copy link
Contributor

@yilei yilei commented Mar 16, 2023

Description

Fixes #3591

In addition, other formatting to non-async version of the corresponding statement is also applied, such as removing unnecessary parens.

Checklist - did you ...

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

Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! (apart from two minor things I commented)

yilei and others added 2 commits March 16, 2023 12:42
Co-authored-by: Jelle Zijlstra <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
@github-actions
Copy link

diff-shades reports zero changes comparing this PR (aa872c1) to main (71a2daa).


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

@JelleZijlstra JelleZijlstra merged commit fc6cea0 into psf:main Mar 16, 2023
@yilei yilei deleted the async_cm branch March 16, 2023 23:01
copybara-service bot pushed a commit to google/pyink that referenced this pull request Mar 17, 2023
…n unchanged lines might have their leading space normalized.

This is also required for the new async handling introduced in psf#3609

PiperOrigin-RevId: 517517272
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.

Preview style: async with context managers aren't wrapped in parentheses

2 participants