---
source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs
---
SIM211 [*] Use `not ...` instead of `False if ... else True`
 --> SIM211.py:1:5
  |
1 | a = False if b else True  # SIM211
  |     ^^^^^^^^^^^^^^^^^^^^
2 |
3 | a = False if b != c else True  # SIM211
  |
help: Replace with `not ...`
  |
  - a = False if b else True  # SIM211
1 + a = not b  # SIM211
2 |
  |
note: This is an unsafe fix and may change runtime behavior

SIM211 [*] Use `not ...` instead of `False if ... else True`
 --> SIM211.py:3:5
  |
1 | a = False if b else True  # SIM211
2 |
3 | a = False if b != c else True  # SIM211
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
4 |
5 | a = False if b + c else True  # SIM211
  |
help: Replace with `not ...`
  |
2 |
  - a = False if b != c else True  # SIM211
3 + a = not b != c  # SIM211
4 |
  |
note: This is an unsafe fix and may change runtime behavior

SIM211 [*] Use `not ...` instead of `False if ... else True`
 --> SIM211.py:5:5
  |
3 | a = False if b != c else True  # SIM211
4 |
5 | a = False if b + c else True  # SIM211
  |     ^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 | a = True if b else False  # OK
  |
help: Replace with `not ...`
  |
4 |
  - a = False if b + c else True  # SIM211
5 + a = not b + c  # SIM211
6 |
  |
note: This is an unsafe fix and may change runtime behavior
