diff --git a/dicfg/config.py b/dicfg/config.py index 052293c..d3c7ba9 100644 --- a/dicfg/config.py +++ b/dicfg/config.py @@ -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 diff --git a/dicfg/reader.py b/dicfg/reader.py index 4c764f6..4496d50 100644 --- a/dicfg/reader.py +++ b/dicfg/reader.py @@ -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),