ruff
1c5666ce - [`RUF051`] Ignore if `else`/`elif` block is present (#20705)

Commit
89 days ago
[`RUF051`] Ignore if `else`/`elif` block is present (#20705) ## Summary Fixes #20700 `else` and `elif` blocks could previously be deleted when applying a fix for this rule. If an `else` or `elif` branch is detected the rule will not trigger. So now the rule will only flag if it is safe.
Author
Parents
Loading