Ruff added footnote markers to titles for marking which items are fixable
SIM103 [*] Return the condition `bool(a)` directly
--> SIM103.py:3:5
|
1 | def f():
2 | # SIM103
3 | / if a:
4 | | return True
5 | | else:
6 | | return False
| |____________________^
|
help: Replace with `return bool(a)`
|
2 | # SIM103
- if a:
- return True
- else:
- return False
3 + return bool(a)
4 |
|
note: This is an unsafe fix and may change runtime behavior
(the actual footnote is not included)
Identified in astral-sh/ruff#27033
Fork: astral-sh/ruff#19644
Ruff added footnote markers to titles for marking which items are fixable
(the actual footnote is not included)
Identified in astral-sh/ruff#27033
Fork: astral-sh/ruff#19644