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