-
Notifications
You must be signed in to change notification settings - Fork 7
Switch to Pydantic v2 #592
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
Comments
This issue was explored in #737. Porting the code base to Pydantic V2 was mostly successful (and it mainly consists in updating validators), but we were not satisfied with the new use of This is a common issue, and possible workarounds exist (e.g. #737 (comment), or the recent activity in pydantic/pydantic#7161). We could give it a second try, by adopting one of those workarounds and checking how the outcome looks both in fractal-tasks-core and in other existing packages (ref #757), while keeping an eye on possibly more standard solutions in Pydantic. |
Closed with #793 |
This is an issue to track pydantic-related updates in fractal-tasks-core dependencies, and to discuss strategies for a future v1->v2 migration. Note that this can happen at multiple levels, e.g. we could migrate the dev tools first and the models later. TBD.
First update:
pydantic.v1
napari/napari#6358 or Compatibility with pydantic versions >= 2 napari/napari#6350).The text was updated successfully, but these errors were encountered: