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.01k stars 59 forks source link

Update annotation parsing to work with PEP 649 in Python 3.13 #651

Open jcrist opened 4 months ago

jcrist commented 4 months ago

It looks like accessing __annotations__ is likely to change in Python 3.13.

References:

AFAICT none of this has actually landed in the cpython git repo yet - if/once it does we can start evaluating what changes are needed here.