pyrit.common.combine_list

Contents

pyrit.common.combine_list#

combine_list(list1: str | List[str], list2: str | List[str]) list[source]#

Combines two lists containing string keys, keeping only unique values.

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:

list