Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

This is not possible in the current Python typing system. It would require a way to express a TypedDict from a Pydantic model (or more generally a dataclass-like type). There is some discussion in this thread.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by madduck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants