-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Black produced invalid code: invalid syntax with --experimental-string-processing #1807
Comments
Looks like we should make it so it doesn't try to break the string in the middle of an f-string expression part. cc @bbugyi200. |
@JelleZijlstra Thanks for tagging me on this. I did design #1132 with f-expressions in mind (i.e. I added logic to prevent splitting on f-expressions), but the existing logic apparently does not handle f-expressions which contain other f-expressions well. This bug should be fixed with #1809. |
I hope this helps to make the experimental string processing a bit less experimental :-)
Environment
Python 3.8.6
black, version 20.8b1
Separate venv (via pipx) where only black and its' dependencies are installed
Executed Command
black myfile.py --experimental-string-processing
myfile.py
Error Mesage
Log file
The text was updated successfully, but these errors were encountered: