pyrit.common.combine_dict

Contents

pyrit.common.combine_dict#

combine_dict(existing_dict: dict[str, Any] | None = None, new_dict: dict[str, Any] | None = None) dict[str, Any][source]#

Combine two dictionaries containing string keys and values into one.

Parameters:
  • existing_dict – Dictionary with existing values

  • new_dict – Dictionary with new values to be added to the existing dictionary. Note if there’s a key clash, the value in new_dict will be used.

Returns:

combined dictionary

Return type:

dict