Skip to content

Conversation

@jcrist
Copy link
Owner

@jcrist jcrist commented Oct 20, 2024

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
7 checks passed
@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