---
source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs
---
SIM221 [*] Use `True` instead of `a or not a`
 --> SIM221.py:1:4
  |
1 | if a or not a:
  |    ^^^^^^^^^^
2 |     pass
  |
help: Replace with `True`
  |
  - if a or not a:
1 + if True:
2 |     pass
  |
note: This is an unsafe fix and may change runtime behavior

SIM221 [*] Use `True` instead of `a or not a`
 --> SIM221.py:4:5
  |
2 |     pass
3 |
4 | if (a or not a) or b:
  |     ^^^^^^^^^^
5 |     pass
  |
help: Replace with `True`
  |
3 |
  - if (a or not a) or b:
4 + if (True) or b:
5 |     pass
  |
note: This is an unsafe fix and may change runtime behavior

SIM221 [*] Use `True` instead of `a or not a`
 --> SIM221.py:7:5
  |
5 |     pass
6 |
7 | if (a or not a) and b:
  |     ^^^^^^^^^^
8 |     pass
  |
help: Replace with `True`
  |
6 |
  - if (a or not a) and b:
7 + if (True) and b:
8 |     pass
  |
note: This is an unsafe fix and may change runtime behavior
