-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Redundant parentheses around lists #608
Comments
Same for strings: |
Another example:
reformats with some strange choices
|
The suggestions in the original post and also the second post are IMO reasonable to implement. So unless they are technical reasons, I doubt a PR implementing this would be rejected. wimglenn's case is covered by #1123. |
the OP issue seems to be resolved. |
At least not in main: playground |
They are on v22.1.0 |
I meant that the original issue isn't fixed in main, nor in 22.1.0. |
Operating system: MacOS Mojave
Python version: 3.6.6
Black version: 18.9b0
Does also happen on master: did not test
Black normally removes redundant parentheses (e.g.
((1))
->1
) but this feature does not work for lists.([])
->([])
(instead of[]
)the same for using function notation
(list())
->list()
The text was updated successfully, but these errors were encountered: