-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Formatter: string_processing
preview style
#6936
Comments
My first reaction is that this is similar to Prettier's/Rome's JSX formatting and that we need to use
The main concern with this is performance:
|
string_processing
)
string_processing
)string_processing
preview style
Black no longer wraps implicitly concatenated strings used as func args in parens, due to this comment. |
fyi in case anyone was confused and thought this feature was removed in black version 24.1 like i did, the string processing now has to be enabled with |
Black considers to not move forward with the |
A simpler aspect of this larger problem is joining strings that get put onto the same line. It constantly annoys me and would love to see it resolved: # Before
(
""
""
)
# After
("" "")
# Desired
("")
# OR
"" |
@KotlinIsland we agree. A solution for this is described in #9457 |
Would love to see this feature coming! |
Add support for Black's improved string processing.
Examples
Observations:
+
operatorThe strings must be parenthesized in some contexts, see https://github.com/psf/black/pull/3162/files
The text was updated successfully, but these errors were encountered: