Core
HasValue
An interface for any node object that has a value.
Properties
value
Gets the value node of the object.
Returns the value node of the object implementing the HasValue interface. This node can represent various types of values, such as list elements, dictionary values, or expressions.
Returns: Expression | None: The value node of the object. None if no value is set.
Methods
set_value
Sets the value of the node’s value Expression.
Updates the value of the underlying Expression node if it exists. No action is taken if the value node is None.
Args: value (str): The new value to set.
Returns: None
Was this page helpful?