ruff
d835b3e2 - Avoid `TCH005` for `if` stmt with `elif`/`else` block (#11376)

Commit
1 year ago
Avoid `TCH005` for `if` stmt with `elif`/`else` block (#11376) ## Summary This PR fixes a bug where the auto-fix for `TCH005` would delete the entire `if` statement. The fix in this PR is to not consider it a violation if there are any `elif`/`else` blocks. This also matches the behavior of the original plugin. fixes: #11368 ## Test plan Add test cases.
Author
Parents
Loading