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

Fix caching of dataclass subclass info #599

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Dec 4, 2023

Previously our caching mechanism would do the wrong thing when accessing type info on a dataclass subclass when the base class info was already cached. This fixes that so that decoding dataclass subclasses always works properly.

Fixes #598.

Previously our caching mechanism would do the wrong thing when accessing
type info on a dataclass subclass when the base class info was already
cached. This fixes that so that decoding dataclass subclasses always
works properly.
@jcrist jcrist merged commit dea8056 into main Dec 4, 2023
7 checks passed
@jcrist jcrist deleted the fix-dataclass-subclass-cache branch December 4, 2023 16:21
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.

Dataclass inheritance doesn't work when base class is decoded first
1 participant