
    4i                         S SK Jr  S SKJr  S SKrS SKrS SKJrJr  S SK	J
r
  S SKJr  S SKJr  \(       a  S SKJr  S S	KJrJrJr  \      SS
 j5       r\SS j5       r\SS j5       rSS jrg)    )annotations)contextmanagerN)IOTYPE_CHECKING)CHAINED_WARNING_DISABLED)ChainedAssignmentError)
get_handle)	Generator)
BaseBufferCompressionOptionsFilePathc              #  t   #    [        U SUSS9 nUR                  v   SSS5        g! , (       d  f       g= f7f)z
Open a compressed file and return a file object.

Parameters
----------
path : str
    The path where the file is read from.

compression : {'gzip', 'bz2', 'zip', 'xz', 'zstd', None}
    Name of the decompression to use

Returns
-------
file object
rbF)compressionis_textN)r	   handle)pathr   r   s      Z/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/pandas/_testing/contexts.pydecompress_filer      s-     & 
D$K	G6mm 
H	G	Gs   8'	8
58c              #     ^#    SSK mSU4S jjn[        R                  R                  S5      nU" U 5         Sv   U" U5        g! U" U5        f = f7f)ax  
Context manager for temporarily setting a timezone.

Parameters
----------
tz : str
    A string representing a valid timezone.

Examples
--------
>>> from datetime import datetime
>>> from dateutil.tz import tzlocal
>>> tzlocal().tzname(datetime(2021, 1, 1))  # doctest: +SKIP
'IST'

>>> with set_timezone("US/Eastern"):
...     tzlocal().tzname(datetime(2021, 1, 1))
'EST'
r   Nc                   > [        TS5      (       aO  U c   [        R                  S	 g U [        R                  S'   [        R
                  S:w  a  TR                  5         g g g ! [         a     g f = f)NtzsetTZwin32)hasattrosenvironKeyErrorsysplatformr   )tztimes    r   setTZset_timezone.<locals>.setTZH   si    4!!z

4( $&

4 <<7*JJL + "   s   A# #
A0/A0r   )returnNone)r"   r   r   get)r!   r#   orig_tzr"   s      @r   set_timezoner)   1   sA     * ! jjnnT"G	"Iggs   4AA 	A
AAc              +     #    SSK n1 SknX;   a  [        S5      eUR                  " U 40 UD6   Sv   UR                  U 5        g! UR                  U 5        f = f7f)a=  
Context manager to temporarily register a CSV dialect for parsing CSV.

Parameters
----------
name : str
    The name of the dialect.
kwargs : mapping
    The parameters for the dialect.

Raises
------
ValueError : the name of the dialect conflicts with a builtin one.

See Also
--------
csv : Python's CSV library.
r   N>   unixexcel	excel-tabz Cannot override builtin dialect.)csv
ValueErrorregister_dialectunregister_dialect)namekwargsr.   _BUILTIN_DIALECTSs       r   with_csv_dialectr5   ]   sY     ( 6 ;<<((%t$t$s   ,AA AAAc                    SSK Jn  [        (       a  U (       d  SSKJn  U" 5       $ U" U US9$ [
        nSnU (       a  U/U Q7nU" UU/UQ7S9$ )Nr   )assert_produces_warning)nullcontext)matchzRA value is being set on a copy of a DataFrame or Series through chained assignment)pandas._testingr7   r   
contextlibr8   r   )extra_warningsextra_matchr7   r8   warningr9   s         r   raises_chained_assignment_errorr?      sj    7.= *! 
 )) 	 00G&';'
 	
    )r   zFilePath | BaseBufferr   r   r%   zGenerator[IO[bytes]])r!   strr%   Generator[None])r2   rA   r%   rB   ) rC   )
__future__r   r;   r   r   r   typingr   r   pandas.compatr   pandas.errorsr   pandas.io.commonr	   collections.abcr
   pandas._typingr   r   r   r   r)   r5   r?   rC   r@   r   <module>rK      s    " % 	 

 3 0 ')  
.@ , ( (V % %B
r@   