-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Black seems to preserve parentheses around nested patterns.
match a:
case [(*rest), (a as b)]:
print("test")
case (a): pass
This is in line with Black preserving parentheses around nested expressions.
Surprisingly, Black also seems to preserve parentheses around top-level patterns. I would be okay diverging from Black to align with the Expression formatting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
formatterRelated to the formatterRelated to the formatter