Archived
feat(commit): individual packages from config respected
This commit is contained in:
1 parent
b7218c2a82
commit
ecb2952a7e
9 files changed
+69
-16
No files matched your search
@@ -3,6 +3,16 @@ from config.dtype import ArchMgrConfig
|
||||
|
||||
|
||||
def merge_configs(config: ArchMgrConfig, new_config: ArchMgrConfig) -> ArchMgrConfig:
|
||||
"""Merge two configs, with the new_config taking precedence over the config
|
||||
in the conflicting fields with arrays and dicts merged
|
||||
|
||||
Args:
|
||||
config: Base config
|
||||
new_config: Config to merge into the base config
|
||||
|
||||
Returns:
|
||||
The merged config
|
||||
"""
|
||||
if len(new_config) == 0 or len(config) == 0:
|
||||
return config
|
||||
|
||||
|
||||
Reference in new issue
Block a user