TypeVariant

class dsviper.TypeVariant(types)

Bases: object

A class used to represent a variant<T0, …> type.

static cast(type: Type) TypeVariant

Return a type variant<T0, …> or raise.

description(*, namespace: NameSpace | None = None) str

Return the description.

representation(*, namespace: NameSpace | None = None) str

Return the representation.

runtime_id() ValueUUId

Return the uuid assigned by the runtime.

type_code() str

Return the type code.

types() list[Type]

Return the list of types.