[BUG]: Upgrade pydantic dep to ^2.7.4
to allow compatibility with Python 2.12
#38
Labels
bug
Something isn't working
^2.7.4
to allow compatibility with Python 2.12
#38
Python -VV
Pip Freeze
Reproduction Steps
Run:
Expected Behavior
That single import should work, but it instead raises the following error:
Additional Context
No response
Suggested Solutions
This isn't a problem of mistral-common per se, it rather comes from the pydantic version
2.6.1
, the error has been addressed on pydantic/pydantic#9637 and it's been fixed in version2.7.4
Related to this other issue: #15, the version specified on the https://github.com/mistralai/mistral-common/blob/main/pyproject.toml should probably be prefixed with a caret such that:
This would allow the project being compatible with every pydantic version above
2.7.4
but constrained to that major version number (a version 3 is underway, they will probably change many things of the API, but I haven't checked the specifics yet)The text was updated successfully, but these errors were encountered: