-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Solve FieldValidationInfo warning #1342
Conversation
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.
The tests are failing because the data
attribute was added to ValidationInfo
in pydantic-core
v2.10.0, and Pydantic v2.3.0 uses pydantic-core
v2.6.3, which is the currently locked version.
To make this work, we'd need to bump Pydantic to >=2.4.0
in pyproject.toml
and update the lock file. There's no other way as Pydantic pins the version of pydantic-core
.
Since this would be a dependency version bump only because of an internal type hint, would the other @copier-org/maintainers be okay with this change?
It seems that Pydantic v2.4 (implicitly via the updated pin of
so we may need to bump the minimum Pydantic version to v2.4. |
Yes, please, do the bump, no problem with that. 😉 |
Bump minimum version number for pydantic to 2.4.2
@RomainBrault You also need to update poetry update pydantic |
Codecov Report
@@ Coverage Diff @@
## master #1342 +/- ##
==========================================
+ Coverage 97.13% 97.19% +0.06%
==========================================
Files 48 48
Lines 4258 4280 +22
==========================================
+ Hits 4136 4160 +24
+ Misses 122 120 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
@yajo You updated the lock file with an old version of Poetry which reintroduced these category = "..."
entries. This adds diff noise and the next Dependabot PR will remove them again.
FYI, I've fixed |
Thanks! I updated it with a more modern poetry. I also updated the nix dev shell. |
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.
Perfect! 👌
Fix #1341 by replacing FieldValidationInfo with ValidationInfo.