-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
⬆️ Update Pydantic v2 code to address deprecations #15101
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5fe7833
use Pydantic's try_eval_type if available (otherwise deprecation warn…
svlandeg 94bd713
🎨 Auto format
pre-commit-ci-lite[bot] a1abbce
assert evaluate_forwardref is not None
svlandeg 97ce5de
make mypy happy
svlandeg 8e5d327
fix return type of eval_type
svlandeg 2d2fe3e
add no cover for now
svlandeg 12f3db5
Merge branch 'master' into feat/depr
svlandeg bbf1529
coditional import of Color to avoid deprecation warning
svlandeg 171f062
fix import
svlandeg e867534
appease mypy
svlandeg 6851dad
appease mypy more
svlandeg f57b166
add pragma no cover again
svlandeg 926156f
appease mypy once more
svlandeg 4f4491a
more pragma omg
svlandeg 1f676f1
cleanup
svlandeg 987f1d9
Merge branch 'master' into feat/depr
svlandeg 76f8b96
Merge branch 'master' into feat/depr
svlandeg f3481b0
remove unused ty ignores
svlandeg 6c76442
support both Color classes in ENCODERS_BY_TYPE
svlandeg f6c69a5
🎨 Auto format
pre-commit-ci-lite[bot] 6646cb4
add tests for both Color types
svlandeg f7c8b7c
one parametrized method instead of two
svlandeg 49cb386
more generic deprecation warning
svlandeg c412722
simplify test, ensure it fails on master
svlandeg 53a6ee4
add pragma no cover
svlandeg 33b5930
add explicit test for lowest supported pydantic version
svlandeg 381f567
Revert "add explicit test for lowest supported pydantic version"
svlandeg 5460dcc
add correct typing information
svlandeg d85b3dc
Merge branch 'master' into feat/depr
svlandeg 548d002
Merge branch 'master' into feat/depr
svlandeg ed38f86
Merge branch 'master' into feat/depr
svlandeg 40fdef6
remove pragma no cover as the test suite now runs on Pydantic 2.9.0
svlandeg 833ff83
try bumping Pydantic to 2.11.0
svlandeg e0e2568
revert commit that was meant for a different branch
svlandeg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
appease mypy
- Loading branch information
commit e86753477a60b29a2d3df935313ca812c905c1eb
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.