DSMTypeVariant

class dsviper.DSMTypeVariant

Bases: DSMType

The variant<T0, …> as a parsed model declares it.

types() gives the alternatives, each another declared type, so the leaves are names. Definitions holds the registered TypeVariant those names stand for.

Note: Not directly instantiable.

types() → list[DSMType]

Return the list of types.