def METHOD_NAME(cell: QLineEdit) -> tuple[float, bool]:
    """
    Colors the cell red if the float is invalid
    Parameters
    ----------
    cell : QLineEdit()
        a PyQt/PySide object
    Returns
    -------
    value : float / None
        float : the value as a float
        None : is_passed=False
    is_passed : bool
        is this a valid float
    # Examples
    >>> cell = QLineEdit('3.14')
    >>> value, is_passed = check_float(cell)
    # value=3.14, is_passed=True
    >>> cell = QLineEdit('cat')
    >>> value, is_passed = check_float(cell)
    # value=None, is_passed=False
    """
    text = cell.text()
    value, is_valid = check_locale_float(text)
    if is_valid:
        cell.setStyleSheet("QLineEdit{background: white;}")
        return value, True
    else:
        cell.setStyleSheet("QLineEdit{background: red;}")
        return None, False