Skip to content

Commit e1b5094

Browse files
committed
feat: improve UP050 documentation
1 parent e9321e4 commit e1b5094

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ruff_linter/src/rules/pyupgrade/rules/useless_class_metaclass_type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use crate::fix::edits::{Parentheses, remove_argument};
1212
/// ## Why is this bad?
1313
/// Since Python 3, the default metaclass is `type`, so specifying it explicitly is redundant.
1414
///
15+
/// Even though `__prepare__` is not required, the default metaclass (`type`) implements it,
16+
/// for the convenience of subclasses calling it via `super()`.
1517
/// ## Example
1618
///
1719
/// ```python

0 commit comments

Comments
 (0)