fields¶
- class polyfactory.fields.WrappedCallable[source]¶
Bases:
TypedDict
A ref storing a callable. This class is a utility meant to prevent binding of methods.
- class polyfactory.fields.Require[source]¶
Bases:
object
A factory field that marks an attribute as a required build-time kwarg.
- class polyfactory.fields.Ignore[source]¶
Bases:
object
A 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:
object
Factory field that allows generating values after other fields are generated by the factory.