Esempio 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)
Esempio n. 2
0
 class MyParameter(ParameterType):
     a = IndexedParameterAttribute()
Esempio n. 3
0
 class MyParameter(ParameterType):
     attr = ParameterAttribute()
     indexed = IndexedParameterAttribute()
     attr2 = ParameterAttribute()
     indexed2 = IndexedParameterAttribute(default=None)
Esempio n. 4
0
 class MyParameter(ParameterType):
     required = ParameterAttribute()
     optional = ParameterAttribute(default=1)
     required_indexed = IndexedParameterAttribute()
     optional_indexed2 = IndexedParameterAttribute(default=None)
Esempio n. 5
0
 class MyParameterType(_ParameterAttributeHandler, MixIn):
     k = IndexedParameterAttribute()
Esempio n. 6
0
 class MyParameter(ParameterType):
     attr = ParameterAttribute()
     indexed = IndexedParameterAttribute()
Esempio n. 7
0
 class MyParameter:
     attr_indexed = IndexedParameterAttribute(converter=int)
Esempio n. 8
0
 class MyParameter:
     attr_indexed_converter = IndexedParameterAttribute(converter=float)
Esempio n. 9
0
 class MyParameter:
     attr_indexed_unit = IndexedParameterAttribute(unit=unit.gram)
Esempio n. 10
0
 class MyParameter:
     attr_indexed_optional = IndexedParameterAttribute(default=None)
Esempio n. 11
0
 class MyParameter:
     attr_indexed = IndexedParameterAttribute()