qiskit/pulse/timeslots.py
def shift(self, time: int) -> 'TimeslotCollection':
        """Return a new TimeslotCollection shifted by `time`.

        Args:
            time: time to be shifted by
        """
        slots = [Timeslot(slot.interval.shift(time), slot.channel) for slot in self.timeslots]
        return TimeslotCollection(*slots)
def shift(self, time: int) -> 'TimeslotCollection':
        slots = [Timeslot(slot.interval.shift(time), slot.channel) for slot in self.timeslots]
        return TimeslotCollection(*slots)
def shift ( self , time : int ) -> 'TimeslotCollection' : slots = [ Timeslot ( slot . interval . shift ( time ) , slot . channel ) for slot in self . timeslots ] return TimeslotCollection ( * slots )
Return a new TimeslotCollection shifted by `time`.

        Args:
            time: time to be shifted by
Return a new TimeslotCollection shifted by time .