@@ -14,12 +14,12 @@ use crate::registry::Rule;
14
14
/// Checks for abstract classes without abstract methods.
15
15
///
16
16
/// ## Why is this bad?
17
- /// Abstract base classes are used to define interfaces. If they have no abstract
18
- /// methods, they are not useful.
17
+ /// Abstract base classes are used to define interfaces. If an abstract base
18
+ /// class has no abstract methods, you may have forgotten to add an abstract
19
+ /// method to the class or omitted an `@abstractmethod` decorator.
19
20
///
20
- /// If the class is not meant to be used as an interface, it should not be an
21
- /// abstract base class. Remove the `ABC` base class from the class definition,
22
- /// or add an abstract method to the class.
21
+ /// If the class is _not_ meant to be used as an interface, consider removing
22
+ /// the `ABC` base class from the class definition.
23
23
///
24
24
/// ## Example
25
25
/// ```python
@@ -62,11 +62,9 @@ impl Violation for AbstractBaseClassWithoutAbstractMethod {
62
62
/// decorator.
63
63
///
64
64
/// ## Why is this bad?
65
- /// Empty methods in abstract base classes without an abstract decorator are
66
- /// indicative of unfinished code or a mistake.
67
- ///
68
- /// Instead, add an abstract method decorated to indicate that it is abstract,
69
- /// or implement the method.
65
+ /// Empty methods in abstract base classes without an abstract decorator may be
66
+ /// be indicative of a mistake. If the method is meant to be abstract, add an
67
+ /// `@abstractmethod` decorator to the method.
70
68
///
71
69
/// ## Example
72
70
/// ```python
0 commit comments