L i`ddlmZddlZddlZddlmZmZddlmZerddl m Z GddZ y)) annotationsN) TYPE_CHECKINGAny)util) TracebackTypec@eZdZdZddZddZddZ d dZy) TemporaryDirectoryaTemporary 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.||_||_d|_yN)_args_kwargs_path)selfargskwargss c/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/temporary_directory.py__init__zTemporaryDirectory.__init__0s  !% c,tj|Sr )rrepr_rs r__repr__zTemporaryDirectory.__repr__5szz$rcvtj|ji|j|_|jSr )tempfilemkdtempr r rrs r __enter__zTemporaryDirectory.__enter__8s+%%tzzBT\\B zzrc\|jr tj|jyyr )rshutilrmtree)rexc_type exc_value exc_tracebacks r__exit__zTemporaryDirectory.__exit__<s :: MM$** % rN)rrrrreturnNone)r$str)r ztype[BaseException] | Noner!zBaseException | Noner"zTracebackType | Noner$r%)__name__ __module__ __qualname____doc__rrrr#rrr r sA"&  &,&(&, &  &rr ) __future__rrrtypingrr streamlitrtypesrr r+rrr0s&# %# %&%&r