-
Notifications
You must be signed in to change notification settings - Fork 5
⬆(chore) Switch to Pydantic v2 #476
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 all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
76e658f
⬆Use pydantic v2 everywhere
hf-kklein a83c326
Replace `min_items=...` with `min_length=...`
hf-kklein 1d2e7d8
Replace `regex=...` with `pattern=...`
hf-kklein b039e59
Replace `max_items=...` with `max_length=...`
hf-kklein 8f1fff9
replace depcreated functions and arguments
hf-kklein 5a9ffdd
change validator signatures to use ValidationInfo and values.data
hf-kklein 4433d87
more stuff
hf-kklein 9dbd0ce
pylint
hf-kklein 6eab033
tests are green
hf-kklein 30527ab
Merge remote-tracking branch 'origin/main' into pydantic-v2
hf-kklein 6829439
fup
hf-kklein 26e27c3
"fix" doc creation workflow
hf-kklein 673d91f
formatting and stuff
hf-kklein 80c41d6
lintibinti
hf-kklein d0db070
add comments for issue #478
hf-kklein a3f7b5e
remove commented imports
hf-kklein cb3b1da
remove pinning of mypy
hf-kklein db3a095
add todo comment for #480
hf-kklein 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ Subpackages | |
| bo4e.bo | ||
| bo4e.com | ||
| bo4e.enum | ||
| bo4e.utils | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| iso3166 | ||
| pydantic==1.* | ||
| pydantic>=2.0.0 | ||
hf-krechan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| pyhumps | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,20 @@ | ||
| # | ||
| # This file is autogenerated by pip-compile with Python 3.11 | ||
| # by the following command: | ||
| # This file is autogenerated by pip-compile with python 3.10 | ||
| # To update, run: | ||
| # | ||
| # pip-compile requirements.in | ||
| # | ||
| annotated-types==0.5.0 | ||
| # via pydantic | ||
| iso3166==2.1.1 | ||
| # via -r requirements.in | ||
| pydantic==1.10.5 | ||
| pydantic==2.0.0 | ||
| # via -r requirements.in | ||
| pydantic-core==2.0.1 | ||
| # via pydantic | ||
| pyhumps==3.8.0 | ||
| # via -r requirements.in | ||
| typing-extensions==4.2.0 | ||
| # via pydantic | ||
| typing-extensions==4.7.1 | ||
| # via | ||
| # pydantic | ||
| # pydantic-core |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.