mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 05:13:00 +00:00
[ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) (#20525)
## Summary Fixes #20519
This commit is contained in:
parent
2be73e9afb
commit
1bf4969c96
3 changed files with 18 additions and 16 deletions
|
|
@ -56,3 +56,11 @@ f"{str(object=3)}"
|
|||
f"{str(x for x in [])}"
|
||||
|
||||
f"{str((x for x in []))}"
|
||||
|
||||
# Debug text cases - should not trigger RUF010
|
||||
f"{str(1)=}"
|
||||
f"{ascii(1)=}"
|
||||
f"{repr(1)=}"
|
||||
f"{str('hello')=}"
|
||||
f"{ascii('hello')=}"
|
||||
f"{repr('hello')=}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue