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
StructConfigBase class for module configuration management
moduleDecorator for creating modular system components
- __init__()¶
Methods
__init__()