mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
806eba3810
* Merge init_kwargs with env variables recursively to handle nested values This commit implements `deep_update` function that works as standard `update` method on dicts, but also recursively updates all the nested dict values. It allows splitting init arguments between environment variables and in-code values, as long as they create a valid object when merged together. * Add entry to changes directory * Fix CI/CD checks * Make deep_copy not mutating, improve tests and type annotations
173 B
173 B
For BaseSettings merge environment variables and in-code values recursively, as long as they create a valid object
when merged together, to allow splitting init arguments.