-
Notifications
You must be signed in to change notification settings - Fork 6
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
Pin pydantic to <=2.8.2
#834
Comments
See e.g. changes in https://github.com/pydantic/pydantic/blob/v2.8.2/pydantic/_internal/_typing_extra.py from 2.8.2 to 2.9.0 |
The bottom line here is that part of our use cases (extracting a model from a call signature) is not supported by pydantic, and we made it work by mimicking what they do within We can likely reduce/remove some On the other hand, I think that in this case the context is key: we don't really want/need to encourage task developers to rely on cutting-edge pydantic features (which is different from depending on e.g. scipy/numpy/sklearn/skimage/anndata/dask/cellpose cutting-edge features - see e.g. #821 or #833). |
<=2.8.2
Agree that supporting the most cutting edge pydantic features isn't a September priority for sure! Fully fine with pinning this for the time being. Let's discuss the best way forward to ensure our manifest building is maintainable and that we eventually can support newer pydantic versions longer-term. |
I merged #836 and released fractal-tasks-core v1.3.1 |
In our arg schema creation, we rely quite heavily on
pydantic._internal
imports. Some of those appear to break in pydantic v2.9.0. I can't currently trace down which PR broke it, but for example this part was removed in Pydantic 2.9.0:add_module_globals
does not appear to exist anymore in pydantic v2.9.0.We either pin to pydantic 2.8.2 (for the moment) & update that in the templates. Or we come up with a fix to adapt to this pydantic change.
Big picture, the less we need to rely on _internal the better. As long as we rely on it somewhat heavily: Do we want to pin pydantic for the time being to a max version? Requiring 2.9.0 may also be somewhat aggressive, given that it was just released on September 5th.
The text was updated successfully, but these errors were encountered: