serialization
superduper.misc.serialization
asdict
​
asdict(obj,
*,
copy_method=<function copy at 0x104cf7d00>) -> Dict[str,
Any]
Parameter | Description |
---|---|
obj | The dataclass instance to |
copy_method | The copy method to use for non atomic objects |
Convert the dataclass instance to a dict.
Custom asdict
function which exports a dataclass object into a dict,
with a option to choose for nested non atomic objects copy strategy.