DottedVariableName

class caqtus.types.variable_name.DottedVariableName(dotted_name: str)

Bases: object

Represents the name of a parameter.

Instances of this class represents the name of a parameter. They must be valid python identifiers, possibly separated by dots to represent a hierarchy of names.

For example, the names “a”, “foo.bar”, and “a.b.c” are all valid names.

property dotted_name: str

The string representation of the name.

property individual_names: tuple[VariableName, ...]

The individual separated by dots that make up the identifier.

classmethod from_individual_names(
names: Iterable[VariableName],
) Self

Create a new instance from an iterable of individual names.