Module gcip.tools.dict

Functions

def merge_dict(source_dict: Dict[str, Any], target_dict: Dict[str, Any]) ‑> Dict[str, Any]

Merges source_dict into target_dict.

All values from source_dict will either extend or overwrite values in target_dict. The merge works recursively. The target_dict becomes modified.

Args

source_dict : dict
The dict the values should be taken from.
target_dict : dict
The dict the values should be applied to.

Returns

dict
Returns the modified target_dict.