def union(self, *schedules: List[ScheduleComponent]) -> 'Schedule': """Return a new schedule which is the union of `self` and `schedule`. Args: *schedules: Schedules to be take the union with the parent `Schedule`. """ return ops.union(self, *schedules)
def union(self, *schedules: List[ScheduleComponent], name: str = None) -> 'ScheduleComponent': """Return a new schedule which is the union of `self` and `schedule`. Args: *schedules: Schedules to be take the union with the parent `Schedule`. name: Name of the new schedule. Defaults to name of parent """ return ops.union(self, *schedules, name=name)