U
    ˜ARd  ã                   @   s>   d dl mZmZmZ ee eeef eeef dœdd„ZdS )é    )ÚAnyÚ
CollectionÚDict)ÚkeysÚsource_dictÚreturnc                 C   s(   i }| D ]}||kr|  |¡||< q|S )a¢  Extract the specified keys from source_dict and return them in a new dict.

    Parameters
    ----------
    keys : Collection[str]
        The keys to extract from source_dict.
    source_dict : Dict[str, Any]
        The dict to extract keys from. Note that this function mutates source_dict.

    Returns
    -------
    Dict[str, Any]
        A new dict containing the keys/values extracted from source_dict.
    )Úpop)r   r   ÚdÚk© r   ú>/tmp/pip-unpacked-wheel-b9et7o5g/streamlit/connections/util.pyÚextract_from_dict   s
    r   N)Útypingr   r   r   Ústrr   r   r   r   r   Ú<module>   s    

þ