-
Notifications
You must be signed in to change notification settings - Fork 155
refactor: move IntegerField to pydantic #1759
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
refactor: move IntegerField to pydantic #1759
Conversation
|
TODO: if the global idea is ok, move each class from |
pierrecamilleri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(apart from 5 console ones not related to modifications)
Were they already failing before ? Even on master branch ?
(normaly CI was passing not so long ago, however I have not investigated CI breaking in #1758 yet)
| ## Field._descriptor properties | ||
| descr = {**descr, **super().to_descriptor(validate=validate)} | ||
| ## Merge descriptor_descr into base_descr to preserve base order | ||
| descr = {**base_descr, **descriptor_descr} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If changing the order, the above comment needs to be updated ("_descriptor" has priority)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i understand it, it is already the correct way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this comment :
Temporarily, Field properties have priority over
Field._descriptor properties
It seems the opposite to me (descriptor_descr overwrites / has priority over base_descr)
5d85392 to
feb5a97
Compare
800f7bf to
e88d66f
Compare
276a1b8 to
2a435c8
Compare
Integrated pydantic logic to IntegerField.
All tests pass (apart from 5 console ones not related to modifications)
Fixed a few issued: