-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Drop redundant parenthesis in with statement #2921
Copy link
Copy link
Closed
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: bugSomething isn't workingSomething isn't working
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
Black removes redundant parenthesis in most contexts, but this does not apply to the
withstatement yet.To Reproduce
Playground link
Output:
Adding
--target-version=py310or--previewdoes not change this behavior.Environment