class MyRecord(Record): id = Field( type=int, nullable=True, default=100, check=lambda v: 0 < v < 10, )
class MyRecord(Record): id = Field( type=text_type, nullable=True, default='lower', coerce=lambda v: v.upper(), )
class MyRecord(Record): id = Field( type=int, check=SourceCodeTemplate( '$single_digit({})', single_digit=lambda v: 0 <= v < 10, ), )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, check=SourceCodeTemplate( '$isupper({0})', isupper=lambda s: s == s.upper(), ), )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, coerce=SourceCodeTemplate( '$upper({},{})', upper=lambda s: s.upper(), ), )
class MyRecord(Record): id = Field( type=text_type, coerce=SourceCodeTemplate( '$upper({})', upper=lambda s: s.upper(), ), )
class MyRecord(Record): id = Field( type=int, check=SingleDigit(), )
class MyRecord(Record): v = dict_of(Field(int), Field(int))
class MyRecord(Record): v = set_of(Field(int))
class MyRecord(Record): id = Field( type=text_type, coerce='{}.upper()', )
class MyRecord(Record): id = Field( type=int, coerce=coercion, )
class MyRecord(Record): id = Field( type=text_type, coerce=lambda s: s.upper(), )
class MyRecord(Record): id = Field( type=int, coerce=lambda v: v + 10, check=lambda v: 0 <= v < 10, )
class MyRecord(Record): id = Field( type=text_type, coerce=lambda s: None, nullable=True, )
class MyRecord(Record): id = Field( type=text_type, check=boom, )
class MyRecord(Record): id = Field( type=text_type, check=re.compile(r'brac').search, )
class MyRecord(Record): id = Field( type=text_type, check=lambda s: s == 'valid', )
class MyRecord(Record): id = Field( type=text_type, check=not_none, )
class MyRecord(Record): id = Field( type=text_type, nullable=True, check=not_none, )
class MyRecord(Record): id = Field( type=text_type, coerce=lambda v: None, )
class MyRecord(Record): id = Field( type=MyClass, nullable=True, default=MyClass(10), )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, coerce=0, )
class MyRecord(Record): id = Field( type=int, check='0 <= {} < 10', )
class MyRecord(Record): id = Field( type=text_type, coerce=Upper(), )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, check='len({0}) == 3', )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, coerce='{}.upper({})', )
class MyRecord(Record): # pylint: disable=unused-variable id = Field( type=text_type, check='{} == {}.upper()', )
class MyRecord(Record): id = Field(int)
class MyRecord(Record): v = pair_of(Field(int))