Skip to content

Fix caching of dataclass subclass info#599

Merged
jcrist merged 1 commit intomainfrom
fix-dataclass-subclass-cache
Dec 4, 2023
Merged

Fix caching of dataclass subclass info#599
jcrist merged 1 commit intomainfrom
fix-dataclass-subclass-cache

Conversation

@jcrist
Copy link
Copy Markdown
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
@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