summaryrefslogtreecommitdiff
path: root/astroid/interpreter/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/interpreter/objects.py')
-rw-r--r--astroid/interpreter/objects.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/astroid/interpreter/objects.py b/astroid/interpreter/objects.py
index 1c062878..504b9f9c 100644
--- a/astroid/interpreter/objects.py
+++ b/astroid/interpreter/objects.py
@@ -342,21 +342,20 @@ class Generator(Instance):
return 'Generator(%s)' % (self._proxied.name)
+@util.register_implementation(runtimeabc.FrozenSet)
class FrozenSet(base.BaseContainer, Instance):
"""Class representing a FrozenSet composite node."""
def pytype(self):
return '%s.frozenset' % BUILTINS
- def _infer(self, context=None):
- yield self
-
@decorators.cachedproperty
def _proxied(self):
builtins = MANAGER.astroid_cache[BUILTINS]
return builtins.getattr('frozenset')[0]
+@util.register_implementation(runtimeabc.Super)
class Super(base.NodeNG):
"""Proxy class over a super call.
@@ -383,9 +382,6 @@ class Super(base.NodeNG):
'__class__': self._proxied,
}
- def _infer(self, context=None):
- yield self
-
def super_mro(self):
"""Get the MRO which will be used to lookup attributes in this super."""
if not isinstance(self.mro_pointer, treeabc.ClassDef):