def angle_between_bearings(bearing1:float, bearing2:float) -> float:
    """Return angle between two bearings
    
    Parameters
    ----------
    bearing1 : float
        Bearing in degrees.
    bearing2 : float
        Bearing in degrees.

    Returns
    -------
    angle
        Angle in degrees.
    """
    assert 0 <= bearing1 <= 360, 'bearing1 out of bounds!'
    assert 0 <= bearing2 <= 360, 'bearing2 out of bounds!'
    abs_diff = abs(bearing1 - bearing2)
    return min(abs_diff, abs(360 - abs_diff))