def shift(self: ScheduleComponent, time: int) -> 'Schedule': """Return a new schedule shifted forward by `time`. Args: time: Time to shift by """ return ops.shift(self, time)
def shift(self: ScheduleComponent, time: int, name: str = None) -> 'ScheduleComponent': """Return a new schedule shifted forward by `time`. Args: time: Time to shift by name: Name of the new schedule. Defaults to name of parent """ return ops.shift(self, time, name=name)