-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violationshelp wantedContributions especially welcomeContributions especially welcome
Description
Summary
When the fix for useless-class-metaclass-type (UP050) deletes a comment, it should be marked unsafe.
$ cat >up050.py <<'# EOF'
class C(
object, # Explicit is better than implicit.
metaclass=type,
): ...
# EOF
$ ruff --isolated check up050.py --select UP050 --preview --fix
Found 1 error (1 fixed, 0 remaining).
$ cat up050.py
class C(
object,
): ...Version
ruff 0.11.12 (aee3af0 2025-05-29)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violationshelp wantedContributions especially welcomeContributions especially welcome