Drop redundant parenthesis in with
statement
#2921
Labels
F: parentheses
Too many parentheses, not enough parentheses, and so on.
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: bug
Something isn't working
Describe the bug
Black removes redundant parenthesis in most contexts, but this does not apply to the
with
statement yet.To Reproduce
Playground link
Output:
Adding
--target-version=py310
or--preview
does not change this behavior.Environment
The text was updated successfully, but these errors were encountered: