Skip to content

Conversation

dcwatson
Copy link

The other inspected types carry through the typing args, seems like custom types should as well. My specific use-case is wanting to use msgspec.inspect.type_info on Structs which may have custom Generic members, without having to augment it with a separate call to msgspec.structs.fields and parsing out the type info myself.

@xiaohuanshu
Copy link

this is very useful, why wasn't it merged.
maybe should add both cls and original type in CustomType

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.

2 participants