summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index 79da1d4d..e9c6a26d 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -1925,6 +1925,8 @@ class ClassDef(QualifiedNameMixin, base.FilterStmtsMixin,
bases = list(self._inferred_bases(context=context))
bases_mro = []
for base in bases:
+ if base is self:
+ continue
try:
mro = base.mro(context=context)
bases_mro.append(mro)