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

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

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


