lovasoa / marshmallow_dataclass

Automatic generation of marshmallow schemas from dataclasses.
https://lovasoa.github.io/marshmallow_dataclass/html/marshmallow_dataclass.html
MIT License
456 stars 78 forks source link

Add fields with `init=False` after the object is created #265

Open ddorian opened 3 months ago

ddorian commented 3 months ago

I need a way to add fields that have init=False to the dataclass after it's created.

This is a small draft to get an opinion if it's ok.

It works on my project, I can add tests etc if I get ok.