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
The f-string f"{{test}}" without a variable, it is automatically converted to "{{test}}".
But they are not the same. (See: https://peps.python.org/pep-0498/#escape-sequences ; e.g. f'{{ {4*10} }}' == '{ 40 }')
Expected: f"{{test}}" -> "{test}"
BTW, Thanks for ruff ... !
The text was updated successfully, but these errors were encountered:
Thanks for filing!
Sorry, something went wrong.
(Confirmed, the autofix here just removes the prefix, but doesn't un-escape any curly contents.)
Fix for F541 unescape f-string
4474cbd
Closes astral-sh#2936
58ab99b
06b26b1
Successfully merging a pull request may close this issue.
The f-string f"{{test}}" without a variable, it is automatically converted to "{{test}}".
But they are not the same. (See: https://peps.python.org/pep-0498/#escape-sequences ; e.g. f'{{ {4*10} }}' == '{ 40 }')
Expected: f"{{test}}" -> "{test}"
BTW, Thanks for ruff ... !
The text was updated successfully, but these errors were encountered: