Inconsistent model_dump
behavior with dataclasses and field(init=False)
#7895
Labels
bug V2
Bug related to Pydantic V2
Initial Checks
Description
Models will only dump correctly if a field with
init=False
usesdefault_factory
.Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: