summaryrefslogtreecommitdiff
path: root/astroid/helpers.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-02 11:51:18 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-02 11:51:18 +0300
commit0c5a7c0e4f383b87e191a98b71cd536f9663618a (patch)
treed723aceca59c65697358c9fbdf84759bd7da02ee /astroid/helpers.py
parent8a71646692b2834eadea65fd0ff840a4e27a3aea (diff)
downloadastroid-git-0c5a7c0e4f383b87e191a98b71cd536f9663618a.tar.gz
Return YES if no types could be deduced for the type builtin.
Diffstat (limited to 'astroid/helpers.py')
-rw-r--r--astroid/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/helpers.py b/astroid/helpers.py
index fa941d94..1148ada3 100644
--- a/astroid/helpers.py
+++ b/astroid/helpers.py
@@ -90,7 +90,7 @@ def object_type(node, context=None):
types = set(_object_type(node, context))
except exceptions.InferenceError:
return bases.YES
- if len(types) > 1:
+ if len(types) > 1 or not types:
return bases.YES
return list(types)[0]