-
-
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
pydantic field_validator
s should be @classmethod
s
#111
Comments
the dependency spec is too generous re: pydantic version too - Line 58 in 470f71a
changes like these add up, and the package is no longer compatible with pydantic v1 ;) - def recommend dropping support, it's been more than a year |
Fixes #111 Co-authored-by: Charles Tapley Hoyt <[email protected]>
Thanks @sneakers-the-rat for investigating this and sending a fix. I will make a new release now, but have also added a pending deprecation in b8d500a for the end of October coincident with dropping py38 support. |
pydantic docs read:
Specifically here:
curies/src/curies/api.py
Line 277 in 470f71a
curies/src/curies/api.py
Line 285 in 470f71a
importing with pydantic 2.8 yields:
simple fix - add @classmethod underneath
The text was updated successfully, but these errors were encountered: