
    Kc                         d  Z dS )c                 @   |                                  D ]e\  }}t          |t                    r<||v r7t          ||         t                    rt          | |         ||                    V||v r||         | |<   f|                                 D ]\  }}|| vr|| |<   | S )a  Merge two nested dictionaries.

    Effectively a recursive ``dict.update``.

    Examples
    --------
    Merge two flat dictionaries:
    >>> nested_update(
    ...     {'a': 1, 'b': 2},
    ...     {'b': 3, 'c': 4}
    ... )
    {'a': 1, 'b': 3, 'c': 4}

    Merge two nested dictionaries:
    >>> nested_update(
    ...     {'x': {'a': 1, 'b': 2}, 'y': 5, 'z': 6},
    ...     {'x': {'b': 3, 'c': 4}, 'z': 7, '0': 8},
    ... )
    {'x': {'a': 1, 'b': 3, 'c': 4}, 'y': 5, 'z': 7, '0': 8}

    )items
isinstancedictnested_update)thisthatkeyvalues       =lib/python3.11/site-packages/traitlets/utils/nested_update.pyr   r      s    , jjll " "
UeT"" 	"d{ 4z$s)T:: 4d3ic333D[ 	"S	DIjjll  
Ud? 	DIK    N)r    r   r   <module>r      s   
! ! ! ! !r   