---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
---
B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
 --> B016.py:6:7
  |
4 | """
5 |
6 | raise False
  |       ^^^^^
7 | raise 1
8 | raise "string"
  |

B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
 --> B016.py:7:7
  |
6 | raise False
7 | raise 1
  |       ^
8 | raise "string"
9 | raise Exception(False)
  |

B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
  --> B016.py:8:7
   |
 6 | raise False
 7 | raise 1
 8 | raise "string"
   |       ^^^^^^^^
 9 | raise Exception(False)
10 | raise Exception(1)
   |
