class GlobalOptions(TestSetup): """ Global Options """ # mode, either Train or Valid. mode: Union[TrainOptions, ValidOptions] = subparsers({ "train": TrainOptions, "valid": ValidOptions, }) global_arg: str = "something"
class Config: experiment: Experiment = subparsers({ "mnist": Mnist, "mnist_continual": MnistContinual, })
class Parent(TestSetup): family: Union[Child, Pet] = subparsers(None, required=False) foo: bool = False income: float = 35_000.