pyrit.common.combine_dict

Contents

pyrit.common.combine_dict#

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

Combines 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