-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compatibility issue with pydantic 2.5.0
Import FieldInfo from its original package
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
From Pydantic 2.5.0 the FieldInfo class is no more available in the pydantic.main | ||
module. Its only available in the pydantic.fields module. The import from the | ||
pydantic.main module was a mistake since it relied on an transitive import from | ||
pydantic.fields to pydantic.main. This is no more the case in Pydantic 2.5.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters