diff --git a/python/src/com/jetbrains/python/psi/types/PyUnionType.java b/python/src/com/jetbrains/python/psi/types/PyUnionType.java index 85b373fbd563..80f39046bd39 100644 --- a/python/src/com/jetbrains/python/psi/types/PyUnionType.java +++ b/python/src/com/jetbrains/python/psi/types/PyUnionType.java @@ -75,7 +75,7 @@ public class PyUnionType implements PyType { public void assertValid(String message) { for (PyType member : myMembers) { if (member != null) { - member.assertValid(null); + member.assertValid(message); } } }