def parse_float_literal ( ast , _variables = None ) : if isinstance ( ast , ( FloatValueNode , IntValueNode ) ) : return float ( ast . value ) return INVALID
python f string literal float
Parse a float value node in the AST .
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