[ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) (#20525)

## Summary

Fixes #20519
This commit is contained in:
Dan Parizher 2025-10-07 16:57:59 -04:00 committed by GitHub
parent 2be73e9afb
commit 1bf4969c96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 16 deletions

View file

@ -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')=}"