diff options
Diffstat (limited to 'astroid/helpers.py')
-rw-r--r-- | astroid/helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/helpers.py b/astroid/helpers.py index 8ea6c4da..2e633a07 100644 --- a/astroid/helpers.py +++ b/astroid/helpers.py @@ -100,8 +100,8 @@ def object_isinstance(node, class_or_seq, context=None): class_seq = class_or_seq obj_type = object_type(node, context) if obj_type is util.Uninferable: - return exceptions.InferenceError( - "{node} cannot be inferred".format(node=node)) + return util.Uninferable + # Instances are not types class_seq = [item if not isinstance(item, bases.Instance) else util.Uninferable for item in class_seq] |