def METHOD_NAME(self, *, contents: list[Type] = UNSET, parameters=UNSET) -> Self:
    return UnionType(
        self._contents if contents is UNSET else contents,
        parameters=self._parameters if parameters is UNSET else parameters,
    )