Unnecessary parentheses when fix PLC2801
bebound opened this issue · 0 comments
bebound commented
ruff check a.py --select PLC2801 --fix --preview --unsafe-fixes
changes the code from
assert 'kk'.__str__() == 'kk'
to
assert (str('kk')) == 'kk'
expected behavior: assert str('kk') == 'kk'
My ruff version is 0.8.0