Skip to content

Add new encoder for dataclass#412

Open
KosukeMizuno wants to merge 3 commits intouiri:masterfrom
KosukeMizuno:master
Open

Add new encoder for dataclass#412
KosukeMizuno wants to merge 3 commits intouiri:masterfrom
KosukeMizuno:master

Conversation

@KosukeMizuno
Copy link
Contributor

Hi, thanks for the useful library.
I added a new encoder to handle dataclasses (TomlDataclassEncoder).

Note that TomlDataclassEncoder only converts contents into dicts, without dumping class names. Thus the dumped toml currently cannot be reconstructed fully, and objects that were dataclasses are loaded as dicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants