generate_changelog.data_merge.comprehensive_merge

comprehensive_merge#

generate_changelog.data_merge.comprehensive_merge(*args)[source]#

Merges data comprehensively.

All arguments must be of the same type.

  • Scalars are overwritten by the new values

  • lists are merged and de-duplicated

  • dicts are recursively merged

Parameters:

*args (Any) – Dicts to merge with the first one the base

Return type:

Any

Returns:

The merged data