Exemplo n.º 1
0
 class BConfig(Config):
     last_name: str = Option()
Exemplo n.º 2
0
 class BConfig(Config):
     last_name: str = Option(default='Bar')
Exemplo n.º 3
0
 class AConfig(Config):
     first_name: str = Option()
Exemplo n.º 4
0
 class BConfig(Config):
     name: str = Option()
Exemplo n.º 5
0
 class AConfig(Config):
     first_name: str = Option(default='Foo')
Exemplo n.º 6
0
 class SubConfig(MyConfig):
     first_name: str = Option(default='bar')
Exemplo n.º 7
0
 class SubConfig(Config):
     o: int = Option(default=42)
Exemplo n.º 8
0
 class MyConfig(MyConfig):
     name: str = Option(default=default)
Exemplo n.º 9
0
 class SubConfig(Config):
     o: int = Option()
Exemplo n.º 10
0
 class MyConfig(Config):
     name: typing.Optional[str] = Option()
Exemplo n.º 11
0
 class MyConfig(Config):
     first_name = Option()
     last_name: typing.Any = Option()
Exemplo n.º 12
0
 class SubConfig(MyConfig):
     first_name: str = Option('last_name')
Exemplo n.º 13
0
 class MyConfig(Config):
     first_name: str = Option('first_name')
Exemplo n.º 14
0
 class SubConfig(MyConfig):
     last_name: str = Option('name')
Exemplo n.º 15
0
 class CConfig(Config):
     first_name: str = Option(default='Bar')
Exemplo n.º 16
0
 class SubConfig(Config):
     """foobar"""
     o: int = Option()
Exemplo n.º 17
0
 class MyConfig(Config):
     name: str = Option(default='foo')
Exemplo n.º 18
0
 class MyConfig(Config):
     name: str = Option(default='foo', doc='bar')