diff options
Diffstat (limited to 'astroid/objects.py')
-rw-r--r-- | astroid/objects.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index 056e2d24..9ae21f3a 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -109,10 +109,10 @@ class Super(bases.NodeNG): raise exceptions.SuperArgumentTypeError( "The first super argument must be type.") - if isinstance(self.type, scoped_nodes.ClassDef): + if isinstance(self.type, scoped_nodes.ClassDef): # `super(type, type)`, most likely in a class method. - self._class_based = True - mro_type = self.type + self._class_based = True + mro_type = self.type else: mro_type = getattr(self.type, '_proxied', None) if not isinstance(mro_type, (bases.Instance, scoped_nodes.ClassDef)): |