Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't encode dataclass classes #755

Merged
merged 1 commit into from
Oct 20, 2024
Merged

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