summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-08-21 12:53:16 -0400
committerCeridwen <ceridwenv@gmail.com>2015-08-21 12:53:16 -0400
commitac141721441674f32611313e193321b8238e88ef (patch)
treedb4b1a8e852832919497a203050d1c2109a6224f /astroid/objects.py
parent7fe6eff8b7bec34bf04226fae8e68bad11900e42 (diff)
parentcc82173edccce5db67908e0a248c7b7c8f4166f2 (diff)
downloadastroid-git-ac141721441674f32611313e193321b8238e88ef.tar.gz
Last merge (hopefully) and all bugs fixed but one
Diffstat (limited to 'astroid/objects.py')
-rw-r--r--astroid/objects.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index a38c2ee2..a25b529e 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -32,7 +32,6 @@ from astroid import bases
from astroid import decorators
from astroid import exceptions
from astroid import MANAGER
-from astroid import mixins
from astroid import node_classes
from astroid import scoped_nodes
@@ -40,28 +39,12 @@ from astroid import scoped_nodes
BUILTINS = six.moves.builtins.__name__
-class FrozenSet(bases.NodeNG, bases.Instance, mixins.ParentAssignTypeMixin):
+class FrozenSet(node_classes._BaseContainer):
"""class representing a FrozenSet composite node"""
- _astroid_fields = ('elts',)
-
- def postinit(self, elts=None):
- self.elts = elts
-
- @classmethod
- def from_constants(cls, elts=None):
- node = cls()
- if elts is None:
- node.elts = []
- else:
- node.elts = [node_classes.const_factory(e) for e in elts]
- return node
def pytype(self):
return '%s.frozenset' % BUILTINS
- def itered(self):
- return self.elts
-
def _infer(self, context=None):
yield self
@@ -70,9 +53,6 @@ class FrozenSet(bases.NodeNG, bases.Instance, mixins.ParentAssignTypeMixin):
builtins = MANAGER.astroid_cache[BUILTINS]
return builtins.getattr('frozenset')[0]
- def bool_value(self):
- return bool(self.elts)
-
class Super(bases.NodeNG):
"""Proxy class over a super call.