We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 versions 24.4.1 and 24.4.2 encounter an issue when formatting Python code containing an f-string that includes a multi-line string. Example:
s = f"""{'''a b c'''}""" print(s)
this is valid python syntax, as it is executable, but black cannot format it, as indicated below:
>>> cat black_sample.py s = f"""{'''a b c'''}""" print(s) >>> python --version Python 3.12.1 >>> python black_sample.py a b c >>> black --version black, 24.4.2 (compiled: yes) Python (CPython) 3.12.1 >>> black black_sample.py error: cannot format black_sample.py: Cannot parse: 1:9: s = f"""{'''a Oh no! 💥 💔 💥 1 file failed to reformat.
The text was updated successfully, but these errors were encountered:
I think this was fixed by #4339 , we should cut a release with it soon
Sorry, something went wrong.
Hi, any chance this is going to be released soon? Latest version available since april seems to have this issue.
Yeah I should cut a release soon. Maybe tonight.
Many thanks, @JelleZijlstra, fingers crossed 🤞
No branches or pull requests
Black versions 24.4.1 and 24.4.2 encounter an issue when formatting Python code containing an f-string that includes a multi-line string. Example:
this is valid python syntax, as it is executable, but black cannot format it, as indicated below:
The text was updated successfully, but these errors were encountered: