sort autofix incorrectly removes nested sorts #5712
Labels
accepted
Ready for implementation
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Contributions especially welcome
Minimal reproduction:
prints out:
[(1, 'a'), (1, 'b'), (2, 'a'), (2, 'b')]
After running
ruff check reproduce_sort_issue.py
Found 1 error (1 fixed, 0 remaining).
The "fixed" code is:
prints out:
[(1, 'b'), (1, 'a'), (2, 'b'), (2, 'a')]
The text was updated successfully, but these errors were encountered: