False positive for consider-using-f-string
when using modulo operator on a string
#6689
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Bug description
Command used
Pylint output
************* Module unittestprog1 unittestprog1.py:16:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
Expected behavior
Do not flag a modulo (
%
) operation on a string with theconsider-using-f-string
lint.(I discovered this issue while working on converting the justbytes module [ https://github.com/mulkieran/justbytes ] to formatted strings:)
Pylint version
OS / Environment
Fedora 36
The text was updated successfully, but these errors were encountered: