You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
__struct_defaults__ is missing from Python type specification #779
I am attempting to work around #778 by writing a recursive Struct traversal in Python as an alternative to asdict (this is going to be slow, but slow-and-working is better than not working).
From looking at the C code, __struct_defaults__ is available alongside __struct_fields__ (aligning from the end of the two sequences).
However, the Python typing stub for the C code is missing this attribute, so mypy et al complain about accessing the field.
Activity
Declare Struct instance defaults in the type stub (msgspec#1173)