You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, dictionaries nested more deeply than the toplevel are not merged:
# current behavior:
merged({"inner": {"foo": "bar"}}, {"inner": {"baz": "qux"}}) == {"inner": {"baz": "qux"}})
# left config overwritten by right config
I would expect that nested configuration gets merged instead of being overwritten:
For context: deep merging will be useful for autoimport. Specifically, deep merging will enable the use-case where multiple autoimport config files each specify part of the common_statements mapping.
Using the new
merge_configs
option to theProjectConfig.__init__
method, configs like the following can be merged:However, dictionaries nested more deeply than the toplevel are not merged:
I would expect that nested configuration gets merged instead of being overwritten:
The text was updated successfully, but these errors were encountered: