class M: s = string_field(factory=lambda: 'hello') d = datetime_field(factory=lambda: dt) i = int_field(factory=lambda: 2) dec = decimal_field(factory=lambda: decimal.Decimal('3')) f = float_field(factory=lambda: 2.3) b = bool_field(factory=lambda: True) by = bytes_field(factory=lambda: b'x') u = url_field(factory=lambda: 'https://foo.com') a = any_field(factory=lambda: 1) o = object_field(int, factory=lambda: 2) k = key(int, factory=lambda: 3)
class B: a = object_field(A)
class Container: expr = object_field(UnionKind(('and', And), ('not', Not)))
class Not: item = object_field(Value, is_only_field=True)
class M: m = object_field( UnionKind( ('target', DeferredKind('tests.test_models.TargetModel')), ))
class M: a = object_field(L)
class Not: item = object_field(Value)
class M: dt = datetime_field() sub = object_field(SELF, is_optional=True, default=None)
class C: b = object_field(B)
class M: f = object_field(X, is_optional=True, default=None)
class M: f = object_field(SELF, is_optional=True)
class M: f = object_field(X)