diff options
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. |