Skip to content

Don't encode dataclass classes - #755

Merged
jcrist merged 1 commit into
mainfrom
dont-encode-dataclass-classes
Oct 20, 2024
Merged

Don't encode dataclass classes#755
jcrist merged 1 commit into
mainfrom
dont-encode-dataclass-classes

Conversation

@jcrist

@jcrist jcrist commented Oct 20, 2024

Copy link
Copy Markdown
Member

Previously our "is this a dataclass-like thing" check would erroneously pass for dataclass classes as well as their instances. We now properly exclude classes and only encode instances.

Fixes #681.

Previously our "is this a dataclass-like thing" check would erroneously
pass for dataclass _classes_ as well as their instances. We now properly
exclude classes and only encode instances.
@jcrist
jcrist merged commit ada66a7 into main Oct 20, 2024
@jcrist
jcrist deleted the dont-encode-dataclass-classes branch October 20, 2024 20:04
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.

Json Encoder: dataclass classes are encoded to empty dict

1 participant