Incorrect autofix for PYI030
#13685
Labels
bug
Something isn't working
fixes
Related to suggested fixes for violations
help wanted
Contributions especially welcome
Running Ruff 0.6.9 as
ruff check --isolated --select PYI030 --fix test.py
deletes any subscripted types in a union with the offending Literals:becomes
Glancing through the code, it looks like this
if
block is just missingelse { other_exprs.push(expr); }
:ruff/crates/ruff_linter/src/rules/flake8_pyi/rules/unnecessary_literal_union.rs
Lines 66 to 83 in 93eff7f
The text was updated successfully, but these errors were encountered: