finesse.script.util.merge_attributes

finesse.script.util.merge_attributes(attr1, attr2)[source]

Perform a deep attribute dictionary merge.

This merges list and tuples in attr1 and attr2 into one dict. Values that are not lists or tuples result in an error. Items in attr1 appear before those in attr2 where they share the same key.

Parameters
attr1, attr2dict

The attribute dictionaries to merge.

Returns
dict

The merged attribute dictionary.

Raises
ValueError

If a dict value in attr1 or attr2 is not a list or tuple.