Skip to content

Wrong fix for PLC2801 #14423

@bebound

Description

@bebound

ruff check kk.py --select PLC2801 --fix --preview --unsafe-fixes --isolated change the code from

if 'kk'.__contains__("k"):
    print("yes")

to

if 'kk' in "k":
    print("yes")

The correct fix is if 'k' in 'kk'.

Version: ruff 0.7.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions