
    g[                    @    d dl mZ d dlZd dlZd dlmZ  G d d      Zy)    )annotationsN)utilc                  *    e Zd ZdZd ZddZd Zd Zy)TemporaryDirectorya  Temporary directory context manager.

    Creates a temporary directory that exists within the context manager scope.
    It returns the path to the created directory.
    Wrapper on top of tempfile.mkdtemp.

    Parameters
    ----------
    suffix : str or None
        Suffix to the filename.
    prefix : str or None
        Prefix to the filename.
    dir : str or None
        Enclosing directory.

    c                     || _         || _        y N)_args_kwargs)selfargskwargss      R/var/www/openai/venv/lib/python3.12/site-packages/streamlit/temporary_directory.py__init__zTemporaryDirectory.__init__,   s    
    c                ,    t        j                  |       S r   )r   repr_r   s    r   __repr__zTemporaryDirectory.__repr__0   s    zz$r   c                v    t        j                  | j                  i | j                  | _        | j                  S r   )tempfilemkdtempr	   r
   _pathr   s    r   	__enter__zTemporaryDirectory.__enter__3   s+    %%tzzBT\\B
zzr   c                B    t        j                  | j                         y r   )shutilrmtreer   )r   exc_type	exc_valueexc_tracebacks       r   __exit__zTemporaryDirectory.__exit__7   s    djj!r   N)returnstr)__name__
__module____qualname____doc__r   r   r   r     r   r   r   r      s    " "r   r   )
__future__r   r   r   	streamlitr   r   r'   r   r   <module>r*      s    #   " "r   