Skip to content

Conversation

@pmeier
Copy link
Contributor

@pmeier pmeier commented Oct 30, 2025

Closes #590. @hramezani I took the liberty and put your suggestion from #590 (comment) into a PR, because I'd like to see this supported out of the box.

I'm aware tests are missing. I'll send them a little later.

Do you want the deep_merge flag also to be part of the SettingsConfigDict?

@hramezani
Copy link
Member

hramezani commented Nov 10, 2025

Thanks @pmeier for the PR and sorry for the late response.

Let's keep the flag on the settings source level and not add it to SettingsConfigDict for now.

Please update the documentation as well

@pmeier pmeier marked this pull request as ready for review November 11, 2025 23:24
@pmeier
Copy link
Contributor Author

pmeier commented Nov 11, 2025

@hramezani Ready for review now.

@hramezani
Copy link
Member

Thanks @pmeier

@hramezani hramezani merged commit 61e0b46 into pydantic:main Nov 13, 2025
19 checks passed
@pmeier pmeier deleted the deep-merge branch November 13, 2025 16:05
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.

Settings Merging from files doesn't allow for partial overrides

2 participants