def extend ( a : dict , b : dict ) -> dict : res = a . copy ( ) res . update ( b ) return res
python merge to dic
Merge two dicts and return a new dict . Much like subclassing works .
def extend(a: dict, b: dict) -> dict:
    """Merge two dicts and return a new dict. Much like subclassing works."""
    res = a.copy()
    res.update(b)
    return res