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

Format PatternMatchAs #6641

Closed
Tracked by #5834
MichaReiser opened this issue Aug 17, 2023 · 0 comments · Fixed by #6652
Closed
Tracked by #5834

Format PatternMatchAs #6641

MichaReiser opened this issue Aug 17, 2023 · 0 comments · Fixed by #6652
Labels
formatter Related to the formatter help wanted Contributions especially welcome

Comments

@MichaReiser
Copy link
Member

MichaReiser commented Aug 17, 2023

Implement formatting for x as .. pattern

match x:
    case [x] as y:
        ...
    case _:
        ...
@MichaReiser MichaReiser added formatter Related to the formatter help wanted Contributions especially welcome labels Aug 17, 2023
@MichaReiser MichaReiser added this to the Formatter: Alpha milestone Aug 17, 2023
charliermarsh pushed a commit that referenced this issue Aug 22, 2023
## Summary

Add formatting for `PatternMatchAs`.

This closes #6641.

## Test Plan

Add tests for comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter help wanted Contributions especially welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant