Example #1
0
 class M:
     s = attr.ib(validator=instance_of(str))
     i = attr.ib(validator=instance_of(int))
     nullable = attr.ib()
     d = datetime_field()
     lst1 = list_field(int)
     lst2 = list_field(X)
Example #2
0
 class MList:
     as_list = list_field(SELF)
Example #3
0
 class N:
     xs = list_field(int, sort_key=lambda x: x, sort_reverse=True)
Example #4
0
 class M:
     xs = list_field(int, sort_key=lambda x: x)
Example #5
0
 class M:
     v = list_field(UnionKind(('v1', V1), ('v2', V2)), is_only_field=True)
Example #6
0
 class And:
     items = list_field(Value, is_only_field=True)
Example #7
0
 class And:
     items = list_field(Value)
Example #8
0
 class M:
     ms = list_field(SELF)
Example #9
0
 class M:
     xs = list_field(str)
Example #10
0
 class M:
     xs = list_field(X)
Example #11
0
 class M:
     xs = list_field(int, validator=v)
Example #12
0
 class M:
     xs = list_field(int)