-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Descriptors #2
Comments
The descriptors approach wasn't considered at the time of writing this library mostly because I wasn't an active user of the descriptors in general. The idea seems kinda nice indeed. However there's a number of things to be considered if we are to implement this approach.
user = User() # creating a user with no arguments
Could you also provide an example of a descriptor for some type that would actually require a conversion from/to JSON, as opposed to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From readme I see
Which makes me curious on why to define an argument named
_conversion
, is this a design decision for some reason?What about implementing that using the
descriptor
protocol?And having all
*Field
to be implementation of descriptors such as:The text was updated successfully, but these errors were encountered: