-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Use Protocol interfaces and static duck typing design pattern #1547
Comments
This Issue has been inactive for 90 days. As per RFC4, in order to manage maintenance burden, it will be automatically closed in 7 days. |
I would be interested to see the move to plain dataclasses as well. Since they are part of python this should be more stable than using pydantic. Currently I'm facing the same problem as described here #1664 Is there a roadmap when this could happen? I could support working on that. |
@ricardogsilva can you please share the WIP that you developed during the sprint? |
This Issue has been inactive for 90 days. As per RFC4, in order to manage maintenance burden, it will be automatically closed in 7 days. |
@vvmruder Sorry for the late reply, the roadmap that we agreed during the sprint last year was to:
@ricardogsilva had developed a very early implementation of the above but I'm not sure he has already that available from his fork |
@francbartoli I really appriceate this decision and looking forward to use it. Again, I can offer a hand to support the work on that. Please get in touch. |
Is your feature request related to a problem? Please describe.
In order to improve flexibility and composability over inheritance it would be beneficial to improve the design using static duck typing PEP 544
Describe the solution you'd like
This is a very basic example how we can use it to adopt standard dataclasses as replacement of pydantic data models but at the same type leave the flexibility to use them for data validation in a fancy way without touching the core:
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: