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