---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLR0911 Too many return statements (11 > 6)
 --> too_many_return_statements.py:4:5
  |
2 | https://github.com/PyCQA/pylint/blob/69eca9b3f9856c3033957b769358803ee48e8e47/tests/functional/t/too/too_many_return_statements.py
3 | """
4 | def stupid_function(arg): # [too-many-return-statements]
  |     ^^^^^^^^^^^^^^^
5 |     if arg == 1:
6 |         return 1
  |
