designspace.ChoiceDomain#

class designspace.ChoiceDomain(variants: tuple[str, ...], has_payload: frozenset[str])#

Bases: object

A branch among named variants, declared by .choice().

variants#

Variant names in declaration order, which is the order .prior(weights=…) aligns to.

Type:

tuple[str, …]

has_payload#

The variants carrying parameters of their own. A value for one of these nests a payload dict; a value for any other variant is just the name.

Type:

frozenset[str]