MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / merge_envs

Function merge_envs

crates/pyhq/python/hyperqueue/job.py:185–189  ·  view source on GitHub ↗
(default: EnvType, env: Optional[EnvType])

Source from the content-addressed store, hash-verified

183
184
185def merge_envs(default: EnvType, env: Optional[EnvType]) -> EnvType:
186 environment = default.copy()
187 if env:
188 environment.update(env)
189 return environment

Callers 2

programMethod · 0.85
functionMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected