def parse_float_literal(ast, _variables=None):
    """Parse a float value node in the AST."""
    if isinstance(ast, (FloatValueNode, IntValueNode)):
        return float(ast.value)
    return INVALID
def parse_float_literal ( ast , _variables = None ) : if isinstance ( ast , ( FloatValueNode , IntValueNode ) ) : return float ( ast . value ) return INVALID
Parse a float value node in the AST.