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
👍 This is a specific instance of a general problem (#7799), though we may want to fix this case specifically since it's common for this to contain strings.
## Summary
Fixes#9663 and also improves the fixes for
[RUF055](https://docs.astral.sh/ruff/rules/unnecessary-regular-expression/)
since regular expressions are often written as raw strings.
This doesn't include raw f-strings.
## Test Plan
Existing snapshots for RUF055 and PT009, plus a new `Generator` test and
a regression test for the reported `PIE810` issue.
Start with this code:
Ruff correctly complains that I should use a single
.startswith()
call.Run Ruff's autofix for PIE810:
And now my string is not raw any more.
The text was updated successfully, but these errors were encountered: