diff options
Diffstat (limited to 'astroid/util.py')
-rw-r--r-- | astroid/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/astroid/util.py b/astroid/util.py index 1111202f..f159fdb4 100644 --- a/astroid/util.py +++ b/astroid/util.py @@ -50,6 +50,11 @@ class Uninferable(object): def __call__(self, *args, **kwargs): return self + def __bool__(self): + return False + + __nonzero__ = __bool__ + def accept(self, visitor): func = getattr(visitor, "visit_uninferable") return func(self) |