from_dict resets dataclasses.field
with argument init=False
and default_factory
#244
Labels
bug
Something isn't working
Describe the bug
When one of the dataclass's fields is a
field(init=False, default_factory=list/dict/whatever)
Using
from_dict
to load an instance of the dataclass results in the field being overridden to thedefault_factory
value effectively ignoring any modifications done in the__post_init__
method of the class.To Reproduce
Expected behavior
Environment
dacite
version: 1.8.1The text was updated successfully, but these errors were encountered: