jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
https://jcristharif.com/msgspec/
BSD 3-Clause "New" or "Revised" License
2.09k stars 61 forks source link

Fix caching of dataclass subclass info #599

Closed jcrist closed 7 months ago

jcrist commented 7 months ago

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.