-
Notifications
You must be signed in to change notification settings - Fork 22
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 - migration #279
Conversation
Todo list:
|
There are some bugs in pydantic2:
Things to consider:
|
@bertiqwerty: Only failing tests are now due to failure in the DOE module since on the 25th of December a new formulaic version was released and this breaks some of our tests. |
Hi @bertiqwerty, tests are now passing, and I think the PR is ready for review. What do you think, who should review it? Issues that are mentioned above which are still open are:
But it could be better to do this in a seperate PR. What do you think? Furthermore, we need to think about a merging/release strategy as this PR introduces quite a big change/break. Best, Johannes |
Hi @jduerholt , Thanks a lot! The person for review would probably be Benny. I will also have a look. Having a central |
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.
Thanks Johannes. I cannot approve the PR because Github says authors cannot approve their own PRs. You can probably approve and merge it?
Hi @bertiqwerty, thx! Yes, I will go through it and then approve and merge. For me it works. The idea with the Before than merging it in, should we make a last pydantic v1 release? Best, Johannes |
Hi Johannes, I think we don't need another release with Pydantic 1 but I also don't have an objection. So I am fine either way. Updating Pyright is a good idea. This often leads to some issues. So we could create a MR for this. I can look into this. |
Ok, then we do not create a Pydantic 1 release. Would be nice if you can take care for the pyright update. But we should do it after merging in this PR. My plan is to have it in the latest tomorrow. Note that I moved the pyright config some time ago into the Line 34 in 33a2053
|
@bertiqwerty: it is now merged, you can now have a look at the pyright update ;) |
I am in favor of making a new release with the new Pydantic version. |
Ok, fine for me. Do you want to do it or should I do it? |
I can. |
The goal of this MR is to upgrade to Pydantic 2. For the initial commit I run
bump-pydantic
and changed some things manually. There are still some open issues, though.