cfitall.utils.merge_dicts

merge_dicts(source, destination)

Performs a deep merge of two nested dicts by expanding all Mapping objects until they reach a non-mapping value (e.g. a list, string, int, etc.) and copying these from the source to the destination.

Parameters
  • source (Mapping) – source dictionary to copy from

  • destination (dict) – destination dict to merge into

Return type

dict