archimedes.UnionConfig¶
- class archimedes.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