PY-18739 Union types are generated in PEP 484 compatible format

This commit is contained in:
Mikhail Golubev
2016-03-17 19:11:10 +03:00
committed by Andrey Vlasovskikh
parent 8351fcb532
commit c81fcb5004
@@ -120,7 +120,7 @@ public class PySignature {
return myTypes.get(0);
}
else {
return StringUtil.join(myTypes, " or ");
return "Union[" + StringUtil.join(myTypes, ", ") + "]";
}
}