示例#1
0
 class MyRecord(Record):
     id = nullable(val_type)
示例#2
0
 class MyRecord(Record):
     children = nullable(pair_of(RecursiveType))
示例#3
0
 class MyRecord(Record):
     nxt = nullable(RecursiveType)
示例#4
0
 class MyRecord(Record):
     v = nullable(dict_of(int, int))
示例#5
0
 class MyRecord(Record):
     x = int
     y = nullable(int)
示例#6
0
 class MyRecord(Record):
     v = nullable(set_of(int))
示例#7
0
 class MyRecord(Record):
     v = nullable(pair_of(int))
示例#8
0
 class MyRecord(Record):
     s = nullable(uppercase_wchars(10))
示例#9
0
 class MyRecord(Record):
     v = nullable(one_of('a', 'b', 'c'))
示例#10
0
 class MyRecord(Record):
     value = nullable(object, default=obj)