Comment
Comment by FreakLegion
The Annotated type is worth mentioning as well. Today in something like SQLModel you do (from the readme):
And that's fine. I wouldn't necessarily change anything here. Annotated gives you the option of approaching things in a different way, though.
I have some use cases where the alternative approach is useful, like quantification of class fields or function arguments.