mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
4bc4230df6
* feat: support `default_factory` with `BaseModel.construct` closes #1732 * refactor: remove __field_defaults__ * docs: update change with `__field_defaults__` deletion
190 B
190 B
Add default_factory support with BaseModel.construct.
Please note that __field_defaults__ has been removed.
Use .get_default() method on fields in __fields__ attribute instead.