---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
---
B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
 --> B015.ipynb:5:1
  |
3 | x == 1
4 | # Only skip the last expression
5 | x == 1  # B018
  | ^^^^^^
6 | x == 1
7 | # Nested expressions isn't relevant
  |

B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
  --> B015.ipynb:9:5
   |
 7 | # Nested expressions isn't relevant
 8 | if True:
 9 |     x == 1
   |     ^^^^^^
10 | # Semicolons shouldn't affect the output
11 | x == 1;
   |

B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
  --> B015.ipynb:13:1
   |
11 | x == 1;
12 | # Semicolons with multiple expressions
13 | x == 1; x == 1
   | ^^^^^^
14 | # Comments, newlines and whitespace
15 | x == 1 # comment
   |
