(dicts: List[dict], key, values: list)
return [
        {**dict_, **{key: value}}
        for dict_ in dicts
        for value in values
    ]
Duplicates and updates ``dicts`` for each value in ``values``.

    >>> multiply([{'foo': 1}], key='bar', values=[2, 3])
    [{'foo': 1, 'bar': 2}, {'foo': 1, 'bar': 3}]
Duplicates and updates ``dicts`` for each value in ``values``.
Duplicates and updates dicts for each value in values .
def multiply(dicts: List[dict], key, values: list) -> List[dict]:
    """
    Duplicates and updates ``dicts`` for each value in ``values``.

    >>> multiply([{'foo': 1}], key='bar', values=[2, 3])
    [{'foo': 1, 'bar': 2}, {'foo': 1, 'bar': 3}]

    """
    return [
        {**dict_, **{key: value}}
        for dict_ in dicts
        for value in values
    ]
def multiply ( dicts : List [ dict ] , key , values : list ) -> List [ dict ] : return [ { * * dict_ , * * { key : value } } for dict_ in dicts for value in values ]