Skip to main content

serialization

superduper.misc.serialization

Source code

asdict​

asdict(obj,
*,
copy_method=<function copy at 0x100451ee0>) -> Dict[str,
Any]
ParameterDescription
objThe dataclass instance to
copy_methodThe 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.