pydantic / pydantic-settings

Settings management using pydantic
https://docs.pydantic.dev/latest/usage/pydantic_settings/
MIT License
508 stars 50 forks source link

Env override nested vars #244

Open kschwab opened 5 months ago

kschwab commented 5 months ago

Resolves #241 and #203.

Updates deeply nested overrides to handle BaseModel derived types while ensuring copy-by-reference is maintained.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7e5731a) 97.16% compared to head (f0bdc7f) 97.26%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #244 +/- ## ========================================== + Coverage 97.16% 97.26% +0.09% ========================================== Files 5 5 Lines 424 438 +14 Branches 90 95 +5 ========================================== + Hits 412 426 +14 Misses 9 9 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.