示例#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")
示例#2
0
 class FooConfig(config.Config, section="foo"):
     bar: str = "default"
     foobar: float = 9.87
     baz: bool = config.bool_var(default=False)
示例#3
0
 class BimConfig:
     bar: BarConfig
     bam: bool = config.bool_var()
     bum: int = config.var(123)
     lst: typing.List = config.var(list)
示例#4
0
 class FooConfig:
     bar: str = "default"
     foobar: float = 9.87
     baz: bool = config.bool_var(default=False)
示例#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)