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

prefer one-line string method at end of multiline string #2308

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

prefer one-line string method at end of multiline string #2308

Akuli opened this issue Jun 5, 2021 · 1 comment
Labels
R: duplicate This issue or pull request already exists S: accepted The changes in this design / enhancement issue have been accepted and can be implemented T: style What do we want Blackened code to look like?

Comments

@Akuli
Copy link

Akuli commented Jun 5, 2021

Describe the style change

do not annoyingly split to 3 lines

Examples in the current Black style

foo = """
    Blah blah
    Blah
    """.replace(
    " " * 4, ""
)

Desired style

foo = """
    Blah blah
    Blah
    """.replace(" " * 4, "")
@Akuli Akuli mentioned this issue Jun 5, 2021
2 tasks
@Akuli
Copy link
Author

Akuli commented Jun 5, 2021

duplicate of #256

@Akuli Akuli closed this as completed Jun 5, 2021
@ichard26 ichard26 added R: duplicate This issue or pull request already exists S: accepted The changes in this design / enhancement issue have been accepted and can be implemented T: style What do we want Blackened code to look like? labels Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R: duplicate This issue or pull request already exists S: accepted The changes in this design / enhancement issue have been accepted and can be implemented T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

2 participants