from typing import List
from typing import Tuple
from typing import Union


def __shift_interval_by(intervals: List[Tuple[float, float]], weight: Union[int, float]):
    """ Shift the intervals by a weight """
    return [[x + weight, y + weight] for [x, y] in intervals]