We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 218a0a2 commit a73b51fCopy full SHA for a73b51f
pylint/checkers/utils.py
@@ -1174,7 +1174,9 @@ def class_is_abstract(node: nodes.ClassDef) -> bool:
1174
1175
# As well as directly inherited ABC class
1176
for base in node.bases:
1177
- base_class_name = base.attrname if isinstance(base, astroid.Attribute) else base.as_string()
+ base_class_name = (
1178
+ base.attrname if isinstance(base, astroid.Attribute) else base.as_string()
1179
+ )
1180
if base_class_name == "ABC":
1181
# abc.ABC inheritance
1182
return True
0 commit comments