Exemple #1
0
 class Options(TestSetup):
     config: Union[A,
                   B] = subparsers({
                       "a": A,
                       "b": B
                   },
                                   default_factory=functools.partial(A,
                                                                     foo=0))
Exemple #2
0
class Options:
    config: Union[AConfig, BConfig] = subparsers({
        "a": AConfig,
        "b": BConfig
    },
                                                 default=AConfig())
Exemple #3
0
 class Clarice:
     config: Union[A, B] = subparsers({"a": A, "b": B}, default=A(foo=0))
Exemple #4
0
 class Options(TestSetup):
     config: Union[A, B] = subparsers({"a": A, "b": B}, default=A(foo=0))