Example #1
0
 class C2(Config):
     c2 = DynamicConfig(lambda x: None, auto_load=True)
Example #2
0
 class C(Config):
     a = DynamicConfig(lambda c: [C2(), C2(), C2()])
Example #3
0
 class C2(Config):
     c2 = DynamicConfig(lambda x: [C1(), C1(), C1()], auto_load=True)
Example #4
0
 class C5(C1, C2):
     c5 = DynamicConfig(lambda x: C3(), auto_load=True)
Example #5
0
 class C(Config):
     a = DynamicConfig(lambda x: [C2(), C2()], auto_load=True)
Example #6
0
 class C(Config):
     a = DynamicConfig(lambda x: C2())
Example #7
0
 class C4(C1, C2):
     c4 = DynamicConfig(lambda x: C3())
Example #8
0
 class C(Config):
     a = 0.1
     nest = 'a'
     nest_cfg = DynamicConfig(lambda c: NestA()
                              if c.nest == 'a' else NestB())