Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary parentheses when fix PLC2801 #14597

Closed
bebound opened this issue Nov 26, 2024 · 0 comments · Fixed by #14601
Closed

Unnecessary parentheses when fix PLC2801 #14597

bebound opened this issue Nov 26, 2024 · 0 comments · Fixed by #14601
Assignees
Labels
bug Something isn't working fixes Related to suggested fixes for violations

Comments

@bebound
Copy link

bebound commented Nov 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixes Related to suggested fixes for violations
Projects
None yet
3 participants