def float_callback(input_):
    """Accepts only a float or '' as entry.

    Args:
        input_ (str): input to check

    Returns:
        bool: True if input is a float or an empty string, False otherwise
    """
    if input_ != "":
        try:
            float(input_)
        except (ValueError, TypeError):
            return False
    return True