
    ; iB                        d dl mZ d ZdS )    )annotationsc                    i }|                                  D ]Q\  }}t          |t                    r2t          |                                           D ]\  }}||| d| <   L|||<   R|S )zfFlattens a nested dictionary into a single level dictionary, with keys representing the original path..)items
isinstancedictflatten_update_paths)updatesnew_updateskeyvaluesub_key	sub_values         q/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/google/generativeai/utils.pyr	   r	      s     Kmmoo % %
UeT"" 	%&:5&A&A&G&G&I&I < <"2;s..W..//<  %K    N)
__future__r   r	    r   r   <module>r      s2    # " " " " "    r   