Skip to content
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

fix(config_parser): handle substitutions with resolved values of type ConfigValues #322

Merged
merged 3 commits into from
May 27, 2024

Conversation

M0dEx
Copy link
Contributor

@M0dEx M0dEx commented Jan 17, 2024

This PR fixes #321, where substitutions are not correctly resolved when nested in subsections and having dependents from another config file.

Comment on lines -664 to +665
if not isinstance(resolved_value, ConfigValues):

if resolved_value:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for this specific check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After I've removed this check, the parsing succeeds in some cases, where it previously failed, but fails in some cases, where it succeeded previously.

@darthbear darthbear merged commit 2af3400 into chimpler:master May 27, 2024
1 check passed
@darthbear
Copy link
Member

Thanks for your contribution @M0dEx! Released new version 0.3.61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Substitution fails for nested sections
2 participants