summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index 55bcdd4..0098a73 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -473,7 +473,9 @@ def has_known_bases(klass):
for base in klass.bases:
result = next(base.infer())
# TODO: check for A->B->A->B pattern in class structure too?
- if not isinstance(result, astroid.Class) or result is klass or not has_known_bases(result):
+ if (not isinstance(result, astroid.Class) or
+ result is klass or
+ not has_known_bases(result)):
klass._all_bases_known = False
return False
except astroid.InferenceError: