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: updating of non-dict config values gives error #2364
Conversation
Now the updated tests are included |
Seems like a testcase fails because the result is not as expected? |
Necessary, as changing e.g. `None` to a new `dict` replaces the object instead of an in-place modification
Hi, The problem was the removal of the inner function: When replacing |
Head branch was pushed to by a user without write access
Conceptually, the function was correct, only formatting changes of the module and the test output file was required in the failed jobs. My changes should hopefully fix this now. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
🤖 I have created a release *beep* *boop* --- ## [7.32.1](v7.32.0...v7.32.1) (2023-08-05) ### Bug Fixes * add missing spaces between lines that get concatenated. ([#2268](#2268)) ([7238458](7238458)) * better message about profile usage upon execution ([#2391](#2391)) ([cf8aea5](cf8aea5)) * do not overwrite default resources setting in azure batch executor ([#2395](#2395)) ([4aef3b9](4aef3b9)) * updating of non-dict config values gives error ([#2364](#2364)) ([b33aeec](b33aeec)) * wrong rule names when nesting module imports ([#1817](#1817)) ([65c79a4](65c79a4)) ### Documentation * basics.rst: suggest VS Code instead of deprecated Atom as IDE ([#2368](#2368)) ([1357316](1357316)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
This PR addresses an issue in config merging: If a config value that is not a
dict
(e.g. it isNone
) is replaced by adict
an exception is raised, asupdate_config()
tries to update the keys of the config, which is not possible (e.g.None
has no keys). This PR fixes this problem by just overwriting the original value in this case (e.g.None
is replaced by the new dictionary).QC
docs/
) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).