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

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

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


