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

Moved deep_update from pydantic to pyuploadcare.helpers #284

Merged
merged 3 commits into from
Mar 2, 2024

Conversation

evgkirov
Copy link
Collaborator

@evgkirov evgkirov commented Feb 9, 2024

Description

Fixes #283

There are two instances of deep_update in the Pydantic v2 codebase that we could import. However:

  1. The pydantic.v1.utils.deep_update function could be removed in the future.
  2. The pydantic._internal._utils.deep_update function is clearly marked for internal use.

So I had to copy-paste this function into our library (Pydantic is MIT licensed, so no problem here).

Checklist

@evgkirov evgkirov force-pushed the bugfix/283-deprecated_deep_update branch from 1ccd213 to 3ee178c Compare March 2, 2024 19:41
@evgkirov evgkirov merged commit 114bc98 into main Mar 2, 2024
7 checks passed
@evgkirov evgkirov deleted the bugfix/283-deprecated_deep_update branch March 2, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The usage of the deprecated pydantic.utils.deep_update
2 participants