Closed jcrist closed 11 months ago
Previously msgspec.structs.fields only worked on struct instances or types. We now also support parametrized generic struct types, so msgspec.structs.fields(MyStruct[int]) also works.
msgspec.structs.fields
msgspec.structs.fields(MyStruct[int])
Fixes #570.
Previously
msgspec.structs.fields
only worked on struct instances or types. We now also support parametrized generic struct types, somsgspec.structs.fields(MyStruct[int])
also works.Fixes #570.