---
source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs
---
SIM201.py:2:4: SIM201 [*] Use `a != b` instead of `not a == b`
  |
1 | # SIM201
2 | if not a == b:
  |    ^^^^^^^^^^ SIM201
3 |     pass
  |
  = help: Replace with `!=` operator

ℹ Safe fix
1 1 | # SIM201
2   |-if not a == b:
  2 |+if a != b:
3 3 |     pass
4 4 | 
5 5 | # SIM201

SIM201.py:6:4: SIM201 [*] Use `a != b + c` instead of `not a == b + c`
  |
5 | # SIM201
6 | if not a == (b + c):
  |    ^^^^^^^^^^^^^^^^ SIM201
7 |     pass
  |
  = help: Replace with `!=` operator

ℹ Safe fix
3 3 |     pass
4 4 | 
5 5 | # SIM201
6   |-if not a == (b + c):
  6 |+if a != b + c:
7 7 |     pass
8 8 | 
9 9 | # SIM201

SIM201.py:10:4: SIM201 [*] Use `a + b != c` instead of `not a + b == c`
   |
 9 | # SIM201
10 | if not (a + b) == c:
   |    ^^^^^^^^^^^^^^^^ SIM201
11 |     pass
   |
   = help: Replace with `!=` operator

ℹ Safe fix
7  7  |     pass
8  8  | 
9  9  | # SIM201
10    |-if not (a + b) == c:
   10 |+if a + b != c:
11 11 |     pass
12 12 | 
13 13 | # OK


