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

unnecessary parentheses around string literal #2307

Closed
Akuli opened this issue Jun 5, 2021 · 1 comment
Closed

unnecessary parentheses around string literal #2307

Akuli opened this issue Jun 5, 2021 · 1 comment
Labels
F: parentheses Too many parentheses, not enough parentheses, and so on. F: strings Related to our handling of strings R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like?

Comments

@Akuli
Copy link

Akuli commented Jun 5, 2021

Describe the style change

delete parens

Examples in the current Black style

assert foo == ("Blah blah. Blah blah blah. Blah blah. Lol wat wut.")

Desired style

assert foo == "Blah blah. Blah blah blah. Blah blah. Lol wat wut."
@Akuli Akuli mentioned this issue Jun 5, 2021
2 tasks
@JelleZijlstra JelleZijlstra added F: parentheses Too many parentheses, not enough parentheses, and so on. T: enhancement New feature or request F: strings Related to our handling of strings labels Jun 5, 2021
@JelleZijlstra
Copy link
Collaborator

Duplicate of #1123

@JelleZijlstra JelleZijlstra marked this as a duplicate of #1123 Jun 5, 2021
@ichard26 ichard26 added R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like? and removed T: enhancement New feature or request labels Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: parentheses Too many parentheses, not enough parentheses, and so on. F: strings Related to our handling of strings R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

3 participants