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