Skip to content

SIM222 False positive #4058

@martinhoyer

Description

@martinhoyer

Related to MartinThoma/flake8-simplify#142 ?
Similar to #3830

something = 'foo' or True
$ ruff --show-source sim222.py 
sim222.py:1:13: SIM222 [*] Use `True` instead of `... or True`
  |
1 | something = 'foo' or True
  |             ^^^^^^^^^^^^^ SIM222
  |
  = help: Replace with `True`

Metadata

Metadata

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