Skip to content

fix: Respect 'cli_parse_args' from model_config with settings_customise_sources #611

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

Conversation

karta9821
Copy link
Contributor

@karta9821 karta9821 commented Apr 30, 2025

Fixes: #610

Selected Reviewer: @samuelcolvin

@trygve-baerland
Copy link

Wow, thanks for the quick PR, and nice work!

@hramezani
Copy link
Member

Thanks @karta9821 for the PR.

@trygve-baerland Can you confirm the fix?

@kschwab Please review the PR when you have time.

@karta9821 karta9821 force-pushed the fix/respect-cli-parse-args-from-model-config-with-customise-sources branch 2 times, most recently from b16f436 to 8c93049 Compare April 30, 2025 11:11
@trygve-baerland
Copy link

@hramezani This works as expected for the case I sketched in #610 .

@kschwab
Copy link
Contributor

kschwab commented Apr 30, 2025

@hramezani looks good to me. Thanks for the fix @karta9821!

@hramezani
Copy link
Member

Thanks all!

@hramezani hramezani merged commit fc5409c into pydantic:main May 1, 2025
18 checks passed
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.

Unexpected behaviour in CliSettingsSource when cli_parse_args=True in model_config
5 participants