def shift(shift):
    """
    Check *shift_x* and *shift_y*.
    :raises TypeError: Parameter delta must be a real number.
    """
    if not isinstance(shift, (int, float)):
        raise TypeError('\n\nParameter shift must be a real number.\n')
