From 0594d76bf696d32ecb11c05280920654a9348bc0 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Wed, 21 Oct 2015 16:11:21 +0300 Subject: [PATCH] PY-17148: fixed according to IDEA-CR-5603 --- .../python/psi/impl/PyCallExpressionHelper.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/impl/PyCallExpressionHelper.java b/python/src/com/jetbrains/python/psi/impl/PyCallExpressionHelper.java index 7d196d6a5386..6a04d80900f1 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyCallExpressionHelper.java +++ b/python/src/com/jetbrains/python/psi/impl/PyCallExpressionHelper.java @@ -517,14 +517,7 @@ public class PyCallExpressionHelper { } } - - if (callResultTypes.size() == 1) { - return callResultTypes.iterator().next(); - } - if (callResultTypes.size() > 1) { - return PyUnionType.union(callResultTypes); - } - return null; + return PyUnionType.union(callResultTypes); } @Nullable