Exemplo n.º 1
0
 class MyParameter(ParameterType):
     required1 = ParameterAttribute()
     optional1 = ParameterAttribute(default=None)
     optional2 = IndexedParameterAttribute(default=None)
     optional3 = ParameterAttribute(default=5)
     required2 = IndexedParameterAttribute()
     optional4 = ParameterAttribute(default=2)
Exemplo n.º 2
0
 class MyParameter(ParameterType):
     a = IndexedParameterAttribute()
Exemplo n.º 3
0
 class MyParameter(ParameterType):
     attr = ParameterAttribute()
     indexed = IndexedParameterAttribute()
     attr2 = ParameterAttribute()
     indexed2 = IndexedParameterAttribute(default=None)
Exemplo n.º 4
0
 class MyParameter(ParameterType):
     required = ParameterAttribute()
     optional = ParameterAttribute(default=1)
     required_indexed = IndexedParameterAttribute()
     optional_indexed2 = IndexedParameterAttribute(default=None)
Exemplo n.º 5
0
 class MyParameterType(_ParameterAttributeHandler, MixIn):
     k = IndexedParameterAttribute()
Exemplo n.º 6
0
 class MyParameter(ParameterType):
     attr = ParameterAttribute()
     indexed = IndexedParameterAttribute()
Exemplo n.º 7
0
 class MyParameter:
     attr_indexed = IndexedParameterAttribute(converter=int)
Exemplo n.º 8
0
 class MyParameter:
     attr_indexed_converter = IndexedParameterAttribute(converter=float)
Exemplo n.º 9
0
 class MyParameter:
     attr_indexed_unit = IndexedParameterAttribute(unit=unit.gram)
Exemplo n.º 10
0
 class MyParameter:
     attr_indexed_optional = IndexedParameterAttribute(default=None)
Exemplo n.º 11
0
 class MyParameter:
     attr_indexed = IndexedParameterAttribute()