Skip to content
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

⬆ Upgrade pydantic-core to v2.2.0 #6589

Merged
merged 1 commit into from Jul 11, 2023
Merged

Conversation

lig
Copy link
Contributor

@lig lig commented Jul 11, 2023

Change Summary

Update pydantic-core, rebuild pdm.lock, fix tests.

Related issue number

None

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Closes #6588

Selected Reviewer: @adriangb

@cloudflare-pages
Copy link

cloudflare-pages bot commented Jul 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4b46299
Status: ✅  Deploy successful!
Preview URL: https://747cce96.pydantic-docs2.pages.dev
Branch Preview URL: https://lig-upgrade-pydantic-core-to-fnz7.pydantic-docs2.pages.dev

View logs

actual_errors = exc_info.value.errors(include_url=False)
if expected_errors != actual_errors:
pytest.fail(f'Actual errors: {actual_errors}\nExpected errors: {expected_errors}')
_assert_eq(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like diff shows + for the right part but pytest uses + for the left part in assert left == right. Thus, this is reversed to match pytest.

@@ -233,6 +233,7 @@ def test_error_codes():
assert code_error_codes == documented_error_codes, 'Error codes in code and docs do not match'


@pytest.mark.xfail(reason='`enum` is not documented')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pydantic-core has introduced enum error type in pydantic/pydantic-core#751

@lig lig mentioned this pull request Jul 11, 2023
@lig lig force-pushed the lig/upgrade-pydantic-core-to-2-2-0 branch from 0fd3b42 to 4b46299 Compare July 11, 2023 13:52
@lig lig marked this pull request as ready for review July 11, 2023 13:59
@lig
Copy link
Contributor Author

lig commented Jul 11, 2023

please review

@lig lig merged commit 47c5c63 into main Jul 11, 2023
48 checks passed
@lig lig deleted the lig/upgrade-pydantic-core-to-2-2-0 branch July 11, 2023 15:48
@davidhewitt davidhewitt mentioned this pull request Jul 12, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants