ShallowDataValue
- class ShallowDataValue(*args, **kwargs)[source]
Bases:
DataValue
Abstract base class for shallow data values.
- template_class
alias of
ShallowDataValueTemplate
- variable_class
alias of
ShallowDataValueVariable
- classmethod check(arg: Any, function: Callable[[...], Any] | str | None = None, name: str | None = None, position: int | None = None) Self [source]
Coerces arg into an instance of this class.
If arg cannot be coerced, raises an error.
- Parameters:
arg – Value.
function – Function or function name.
name – Argument name.
position – Argument position.
- Returns:
Object.
- property content: str
The content of shallow data value.
- class ShallowDataValueTemplate(*args, **kwargs)[source]
Bases:
DataValueTemplate
Abstract base class for shallow data value templates.
- object_class
alias of
ShallowDataValue
- property content: VStringContent
The content of shallow data value template.
- class ShallowDataValueVariable(name: str, variable_class: type[Variable] | type[Term] | None = None)[source]
Bases:
DataValueVariable
Shallow data value variable.
- Parameters:
name – Name.
- object_class
alias of
ShallowDataValue