from typing import Optional
from typing import List


def float_list_type(value: str) -> Optional[List[float]]:
    """
    Converts a string with comma separated float values into a list of floats.

    Parameters
    ----------
    value : str
        The string value to be converted

    Returns
    -------
    Optional[List[float]]
        If the string value is a comma separated list of floats, a list of floats is returned.
        Else returning None.
    """

    try:
        arr = [float(x) for x in value.split(',')]
        return arr
    except ValueError:
        pass