diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-16 10:48:07 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-16 10:48:07 +0300 |
commit | 58fae94f8c2c10042fec3de1c9253a8588173c85 (patch) | |
tree | 7597b88fbfaa01f9bb236827a8bb01b69d0aab81 /astroid/objects.py | |
parent | 02be22f288b2a2d39b9657f5fc5f67f15442b31c (diff) | |
download | astroid-58fae94f8c2c10042fec3de1c9253a8588173c85.tar.gz |
Implement bool_value correctly for data structures.
Diffstat (limited to 'astroid/objects.py')
-rw-r--r-- | astroid/objects.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index a1c1da1..b3f3cae 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -66,6 +66,9 @@ class FrozenSet(NodeNG, Instance, ParentAssignTypeMixin): builtins = MANAGER.astroid_cache[BUILTINS] return builtins.getattr('frozenset')[0] + def bool_value(self): + return bool(self.elts) + class Super(NodeNG): """Proxy class over a super call. |