B909
False-positive: Detects immediate break
but not return
#12640
Labels
bug
Something isn't working
B909
False-positive: Detects immediate break
but not return
#12640
List of keywords you searched for before creating this issue. Write them down here so that others can find this issue more easily and help provide feedback.
B909
A minimal code snippet that reproduces the bug.
ruff /path/to/file.py --fix
), ideally including the--isolated
flag.ruff check . --isolated --select=B909 --preview
ruff --version
).ruff 0.5.6
See the reproducer above, I'd expect that to pass, given that the below code also passes, but is much less cleaner:
The text was updated successfully, but these errors were encountered: