---
source: crates/ruff/src/rules/pycodestyle/mod.rs
---
E714.py:2:8: E714 [*] Test for object identity should be `is not`
  |
2 | #: E714
3 | if not X is Y:
  |        ^^^^^^ E714
4 |     pass
5 | #: E714
  |
  = help: Convert to `is not`

ℹ Suggested fix
1 1 | #: E714
2   |-if not X is Y:
  2 |+if X is not Y:
3 3 |     pass
4 4 | #: E714
5 5 | if not X.B is Y:

E714.py:5:8: E714 [*] Test for object identity should be `is not`
  |
5 |     pass
6 | #: E714
7 | if not X.B is Y:
  |        ^^^^^^^^ E714
8 |     pass
9 | #: E714
  |
  = help: Convert to `is not`

ℹ Suggested fix
2 2 | if not X is Y:
3 3 |     pass
4 4 | #: E714
5   |-if not X.B is Y:
  5 |+if X.B is not Y:
6 6 |     pass
7 7 | #: E714
8 8 | if not X is Y is not Z:

E714.py:8:8: E714 [*] Test for object identity should be `is not`
   |
 8 |     pass
 9 | #: E714
10 | if not X is Y is not Z:
   |        ^^^^^^^^^^^^^^^ E714
11 |     pass
   |
   = help: Convert to `is not`


