-
Notifications
You must be signed in to change notification settings - Fork 999
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
Pydantic 2.0 support #3778
Comments
Here is a list of Python files that need to do transformation :
pydantic/pydantic#619 or a more |
A single PR to modify all these files (and with proper testing) seems a little bit scary to me. Any suggestions? One possible suggestion from Pydantic's doc (https://docs.pydantic.dev/latest/migration/) is:
|
The migration mostly relates to imports and validation function annotations so it's not that scary. |
To start the migration, this needs to be fixed and released pydantic/pydantic#7873 |
I'll keep an eye on the Pydantic's bug you mentioned. Once they fixed it, maybe we can discuss the upgrading of Pydantic from v1 to v2. At the same time, let me check the "great-expectations" and "fastapi" upgrades.
|
I'm going to work on this issue. |
Is there any update on Pydantic 2.0 support? |
sorry for the late. I'm still working on it. please wait for few days :) |
Just a progress update:
2, (solved) There is a "mypy" issue here as I also need to update the version to "mypy~=1.1.1" (as required by Pydantic). it will create 120+ mypy lint check errors that need to be fixed. (It will be a tedious grammar change but I just need more time :)) 3, Hope there will be not too many failures while doing the integration test. //pray |
My friends, the PR is here: #3942 I humbly ask you guys to review my PR if you have time, since this PR changes many files from the codebase. |
Folks, the Pydantic V2 is in the master branch. I configured the setup.py as "pydantic>=2.0.0". Especially want to thank Harry @sudohainguyen for spending time to review it! Enjoy! |
Is your feature request related to a problem? Please describe.
I need to install
feast
with Pydantic 2.0 support, but it's pinned topydantic>=1,<2
Describe the solution you'd like
Update dependency to
pydantic>=2
Pydantic v2 offers improved performance (2x-50x faster), which can contribute to the overall efficiency of Feast.
Updating Pydantic to version 2 will be a valuable enhancement to the
feast
, and I am willing to contribute to this update if needed. I look forward to hearing your thoughts on this proposal and am open to discussing it further.The text was updated successfully, but these errors were encountered: