Module gcip.tools.dict
Functions
def merge_dict(source_dict: Dict[str, Any], target_dict: Dict[str, Any]) ‑> Dict[str, Any]-
Merges
source_dictintotarget_dict.All values from
source_dictwill either extend or overwrite values intarget_dict. The merge works recursively. Thetarget_dictbecomes 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.