You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following #139, a possibility solution is global register Path for dataclasses_json manually:
importdataclasses_json.cfgfrompathlibimportPathdataclasses_json.cfg.global_config.encoders[Path] =strdataclasses_json.cfg.global_config.decoders[Path] =Path# is this necessary?@dataclass_json@dataclassclassFoo:
file_path: Path
It's annoying to define this for every path. It ought to be supported natively.
The text was updated successfully, but these errors were encountered: