uploadcare / pyuploadcare

Build file handling in minutes. Upload or accept user-generated content, store, transform, optimize, and deliver images, videos, and documents to billions of users.
https://uploadcare.com/
MIT License
127 stars 31 forks source link

Moved deep_update from pydantic to pyuploadcare.helpers #284

Closed evgkirov closed 9 months ago

evgkirov commented 9 months ago

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