PY-17148: fixed according to IDEA-CR-5603

This commit is contained in:
Ilya.Kazakevich
2015-10-21 16:34:39 +03:00
parent e4eb3bda6e
commit 0594d76bf6
@@ -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