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
String processing doesn't respect existing code formatting for f-strings #2293
Comments
I'm only seeing this with --experimental-string-processing |
Aaaaand, of course, I forgot to mention that in the description, sorry. I updated the issue description appropriately. |
I'm looking into this. Note that this only occurs when you prefix one or more (but not all) of the substrings with a redundant |
…ke f-strings Fixes psf#2293
This issue should be fixed by the following PR: #2311 |
Describe the bug
There is some issue with how Black splits the string if at least one of them is an f-string.
To Reproduce
For example:
--experimental-string-processing
flagI'm also not sure why it splits in the middle of the word?
Expected behavior
No
Environment (please complete the following information):
Does this bug also happen on main?
Yes
Additional context
N/A
The text was updated successfully, but these errors were encountered: