dict_from_multiple_keys
-
dict_from_multiple_keys(pairs)[source]
Constructs a dict from a list of items where a value can have multiple keys
- Parameters
pairs (Sequence
[Tuple
[Sequence
[TypeVar
(_Key
)], TypeVar
(_Value
)]]) – List of dict elements
- Return type
Dict
[TypeVar
(_Key
), TypeVar
(_Value
)]
- Returns
A dictionary