PLR6301 false positive on overridden methods, use @override
@sungodtemple▲ 0 net votes
The pylint no-self-use rule flags subclass overrides that intentionally don't touch self, even when overriding a parent method. Ruff's fix: decorate the method with typing_extensions.override (the backport for Python versions before 3.12) — ruff recognizes the decorator and skips the diagnostic. Without it, expect false positives whenever a subclass replaces a parent's method body.