Beispiel #1
0
    class FooConfig:
        """FooConfig.

        bim bam
        """

        string_val: str = config.var(help="string")
        float_val: float = config.var(9.87, help="float")
        bool_val: bool = config.bool_var(help="bool")
        int_val: int = config.var(help="int")
        list_val: typing.List = config.var(list, help="list")
Beispiel #2
0
    class BarConfig:
        """BarConfig.

        bla bla
        bli bli
        """

        bim: float
        foo: FooConfig = config.var(help="foo")
Beispiel #3
0
 class BimConfig:
     bar: BarConfig
     bam: bool = config.bool_var()
     bum: int = config.var(123)
     lst: typing.List = config.var(list)
Beispiel #4
0
 class FooConfig:
     bar: str = config.var()
Beispiel #5
0
 class BimConfig(config.Config, section="bim"):
     bar: BarConfig
     bam: bool = config.bool_var()
     bum: int = config.var(123)
     lst: typing.List = config.var(list)