interpolations.py
def predefined_interp_class_factory(x0: Union[float, list], x: list):
    """
    According to the value(s) we want to interpolate in, returning the
        right object for interpolating that specific data type (float or list)

    Utilizing the factory design pattern
    """

    try:
        iter(x0)  # type: ignore
        return PredefinedInterpForList(x0, x)  # type: ignore
    except TypeError:
        return PredefinedInterpForFloat(x0, x)

    According to the value(s) we want to interpolate in, returning the
        right object for interpolating that specific data type (float or list)

    Utilizing the factory design pattern
    
According to the value(s) we want to interpolate in, returning the
right object for interpolating that specific data type (float or list)

Utilizing the factory design pattern
According to the value ( s ) we want to interpolate in returning the right object for interpolating that specific data type ( float or list ) Utilizing the factory design pattern
def predefined_interp_class_factory(x0: Union[float, list], x: list):
    try:
        iter(x0)  
        return PredefinedInterpForList(x0, x)  
    except TypeError:
        return PredefinedInterpForFloat(x0, x)
def predefined_interp_class_factory ( x0 : Union [ float , list ] , x : list ) : try : iter ( x0 ) return PredefinedInterpForList ( x0 , x ) except TypeError : return PredefinedInterpForFloat ( x0 , x )
According to the value(s) we want to interpolate in, returning the
right object for interpolating that specific data type (float or list)
According to the value ( s ) we want to interpolate in returning the right object for interpolating that specific data type ( float or list )
"""
    According to the value(s) we want to interpolate in, returning the
        right object for interpolating that specific data type (float or list)

    Utilizing the factory design pattern
    """ # type: ignore # type: ignore
x0
Union[float, list]
x
list