You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I agree. I remember updating the rules to avoid checking inside f-strings when I added support for it, I guess I must've missed this one. Thank you for reporting!
## Summary
This PR fixes a bug where Ruff would raise `E203` for f-string debug
expression. This isn't valid because whitespaces are important for debug
expressions.
fixes: #12023
## Test Plan
Add test case and make sure there are no snapshot changes.
Hi,
this example raises E203 (ruff 0.4.10) although it clearly shouldn't in my opinion:
Output of
ruff check --select E203 --preview
:However, removing the whitespace changes the output from
x = 3.14
tox =3.14
.The text was updated successfully, but these errors were encountered: