Skip to content

Commit

Permalink
change update to append
Browse files Browse the repository at this point in the history
  • Loading branch information
martvanrijthoven committed Sep 9, 2024
1 parent 8c2bab6 commit 415e92b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dicfg/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _update(a: ConfigValue, b: ConfigValue):
a[k].merge(v)
else:
if prev_key is None:
a.data = {**{k: v}, **a.data}
a.data = {**a.data, **{k: v}}
else:
a.data = _insert(a, prev_key, k, v)
prev_key = k
Expand Down
2 changes: 1 addition & 1 deletion dicfg/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def read(
user_presets = read_user_config.pop("presets", ())
user_configs.append(read_user_config)
user_presets_configs.extend(self._read_presets(user_presets))

configs = (
self_config,
*tuple(user_presets_configs),
Expand Down

0 comments on commit 415e92b

Please sign in to comment.