Functional Pick #216
silviogutierrez
announced in
RFC
Replies: 1 comment
-
Functional pick seems to me a better way to create a model type alias. It could open up a way to add extra functionality such as adding extra context (like django rest framework is able to do) and to facilitate adding extra fields such as with DRF's SerializerMethodField for the cases where using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This allows us to do the following, with mypy understanding it:
And much more elaborate options over the existing syntax:
Beta Was this translation helpful? Give feedback.
All reactions