pep584ify: use dict merge operator (#10279)

This was introduced in Python 3.9. The change makes
dict merges 'obvious' and looks cleaner.

I haven't changed `.update()` to `|=` (update operator),
as I find the former to be more readable and "obvious".
This commit is contained in:
skshetry
2024-02-03 15:58:07 +05:45
committed by GitHub
parent 68b9ecb95c
commit 2bf7bd990a
13 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ class BaseStashQueue(ABC):
studio_config = get_studio_config(
dvc_studio_config=self.repo.config.get("studio")
)
run_env = {**config_to_env(studio_config), **run_env}
run_env = config_to_env(studio_config) | run_env
self._pack_args(*args, run_env=run_env, **kwargs)
# save experiment as a stash commit
msg = self._stash_msg(