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

SIM201 [*] Use `a != b + c` instead of `not a == b + c`
 --> SIM201.py:6:4
  |
5 | # SIM201
6 | if not a == (b + c):
  |    ^^^^^^^^^^^^^^^^
7 |     pass
  |
help: Replace with `!=` operator
  |
5 | # SIM201
  - if not a == (b + c):
6 + if a != b + c:
7 |     pass
  |
note: This is an unsafe fix and may change runtime behavior

SIM201 [*] Use `a + b != c` instead of `not a + b == c`
  --> SIM201.py:10:4
   |
 9 | # SIM201
10 | if not (a + b) == c:
   |    ^^^^^^^^^^^^^^^^
11 |     pass
   |
help: Replace with `!=` operator
   |
9  | # SIM201
   - if not (a + b) == c:
10 + if a + b != c:
11 |     pass
   |
note: This is an unsafe fix and may change runtime behavior
