archimedes.tree.UnionConfig

class archimedes.tree.UnionConfig

Discriminated union of StructConfig subclasses.

Usage:

AnyConfig = UnionConfig[ConfigTypeA, ConfigTypeB]

Equivalent to:
AnyConfig = Annotated[

Union[ConfigTypeA, ConfigTypeB], Field(discriminator=”type”),

]

See also

StructConfig

Base class for module configuration management

module

Decorator for creating modular system components

__init__()

Methods