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
You can concatenate string literals like so: 'a' 'b' => 'ab'.
When F504 identifies an unused key which is defined with concatenated string literals, it fails to converge:
x=''% {'a''b' : ''}
$ ruff concat-f504.py --no-cache --fix
debug error: Failed to converge after 100 iterations in `concat-f504.py` with rule codes F504:---
x = '' % {'a''b' : ''}
---
concat-f504.py:1:5: F504 `%`-format string has unused named argument(s): ab
Found 101 errors (100 fixed, 1 remaining).
The text was updated successfully, but these errors were encountered:
You can concatenate string literals like so:
'a' 'b'
=>'ab'
.When F504 identifies an unused key which is defined with concatenated string literals, it fails to converge:
The text was updated successfully, but these errors were encountered: