diff options
author | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-03-11 01:19:38 -0700 |
---|---|---|
committer | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-03-11 01:25:12 -0700 |
commit | dea855281856debe9bddc9b5ceae02884683edcf (patch) | |
tree | ebe3ebb8ea6e0cad34fa9ae9d0163b4c5ae92cd4 /astroid/objects.py | |
parent | fbcf8a03ed6f9160c2780c6627fe76b66f4ad0c5 (diff) | |
download | astroid-git-dea855281856debe9bddc9b5ceae02884683edcf.tar.gz |
Revert "Move FrozenSet to node_classes so it is accessible"
This reverts commit 06273cd07d4b3701998df7b2c656d1b029bdee8e.
Diffstat (limited to 'astroid/objects.py')
-rw-r--r-- | astroid/objects.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index f669b9a8..7a873449 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -29,6 +29,21 @@ BUILTINS = six.moves.builtins.__name__ objectmodel = util.lazy_import('interpreter.objectmodel') +class FrozenSet(node_classes._BaseContainer): + """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): # pylint: disable=method-hidden + builtins = MANAGER.astroid_cache[BUILTINS] + return builtins.getattr('frozenset')[0] + + class Super(node_classes.NodeNG): """Proxy class over a super call. |