fields¶
- class polyfactory.fields.WrappedCallable[source]¶
Bases:
TypedDictA ref storing a callable. This class is a utility meant to prevent binding of methods.
- class polyfactory.fields.Require[source]¶
Bases:
objectA factory field that marks an attribute as a required build-time kwarg.
- class polyfactory.fields.Ignore[source]¶
Bases:
objectA factory field that marks an attribute as ignored.
- class polyfactory.fields.Use[source]¶
Bases:
Generic[P,T]Factory field used to wrap a callable.
The callable will be invoked whenever building the given factory attribute.
- class polyfactory.fields.PostGenerated[source]¶
Bases:
objectFactory field that allows generating values after other fields are generated by the factory.