void () { myFixture.configureByFile("typeParser/typeParser.py"); final PyType type = PyTypeParser.getTypeByName(myFixture.getFile(), "Unresolved or int"); assertNotNull(type); assertInstanceOf(type, PyUnionType.class); final List<PyType> members = new ArrayList<>(((PyUnionType)type).getMembers()); assertEquals(2, members.size()); assertNull(members.get(0)); assertClassType(members.get(1), "int"); }