common_dict#
- common_dict(*dicts)#
Find key/value pairs shared across all provided dictionaries.
- Parameters:
*dicts (dict[str, Any]) – One or more dictionaries.
- Returns:
Dictionary of pairs present and equal in all inputs.
- Return type:
dict[str, Any]
Example
>>> common_dict({'a': 1}, {'a': 1, 'b': 2}, {'a': 1}) {'a': 1}