Ë
    u™ãj#  ã                  ó>  — d dl mZ d dlZd dlZd dlmZ d dlmZ d dlZ	d dl
mZ  G d„ d«      Z G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zej&                  d„ «       ZeZeZeZeZegZeegZ ej6                  eej8                  j:                  ej8                  j=                  e d¬«      g¬«      gZg e¢e¢e¢Z dgZ!ddgZ"dgZ#g e"¢e!¢e#¢Z$ ej&                  e e$¬«      d„ «       Z% ej&                  ee"¬«      d„ «       Z& ej&                  ee!¬«      d„ «       Z' ej&                  ee#¬«      d„ «       Z(d„ Z) ej&                   e)«       d    e)«       d    ¬«      d!„ «       Z*g d"¢Z+g d#¢Z,d$d%gZ-e,D � �cg c]  } e-D ]	  }|› | › d&�‘Œ Œ c}} Z. ej&                  e+¬'«      d(„ «       Z/ ej&                  e.¬'«      d)„ «       Z0 ej&                  g d*¢¬'«      d+„ «       Z1ej&                  d,„ «       Z2ej&                  d-„ «       Z3yc c}} w ).é    )ÚannotationsN)ÚHAS_PYARROW)ÚVERSIONSc                  ón   — e Zd ZU dZded<   dZg Zded<   d„ Zd„ Zddd	œ	 	 	 	 	 dd
„Z	d„ Z
ddœ	 	 	 dd„Zy)Ú
BaseParserNz
str | NoneÚengineTzlist[str | None]Úfloat_precision_choicesc                óv   — |j                  «       }|j                  | j                  | j                  dœ«       |S )N)r   Ú
low_memory)ÚcopyÚupdater   r   )ÚselfÚkwargss     új/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/pandas/tests/io/parser/conftest.pyÚupdate_kwargszBaseParser.update_kwargs   s+   € Ø—‘“ˆØ�‰ §¡¸D¿O¹OÑLÔMàˆó    c                óN   — | j                  |«      }t        j                  |i |¤ŽS ©N)r   ÚpdÚread_csv©r   Úargsr   s      r   r   zBaseParser.read_csv   s&   € Ø×#Ñ# FÓ+ˆÜ�{‰{˜DÐ+ FÑ+Ð+r   )Úraise_on_extra_warningsÚcheck_stacklevelc               ó¬   — | j                  |«      }t        j                  ||||¬«      5  t        j                  |i |¤Žcd d d «       S # 1 sw Y   y xY w)N)Úmatchr   r   )r   ÚtmÚassert_produces_warningr   r   )r   Ú	warn_typeÚwarn_msgr   r   r   r   s          r   Úread_csv_check_warningsz"BaseParser.read_csv_check_warnings   sV   € ð ×#Ñ# FÓ+ˆÜ×'Ñ'ØØØ$;Ø-ô	
ñ 	0ô —;‘; Ð/¨Ñ/÷	0÷ 	0ò 	0ús   «A
Á
Ac                óN   — | j                  |«      }t        j                  |i |¤ŽS r   )r   r   Ú
read_tabler   s      r   r#   zBaseParser.read_table2   s&   € Ø×#Ñ# FÓ+ˆÜ�}‰}˜dÐ- fÑ-Ð-r   )r   c               óª   — | j                  |«      }t        j                  |||¬«      5  t        j                  |i |¤Žcd d d «       S # 1 sw Y   y xY w)N)r   r   )r   r   r   r   r#   )r   r   r    r   r   r   s         r   Úread_table_check_warningsz$BaseParser.read_table_check_warnings6   sR   € ð ×#Ñ# FÓ+ˆÜ×'Ñ'Ø˜XÐ?Vô
ñ 	2ô —=‘= $Ð1¨&Ñ1÷	2÷ 	2ò 	2ús   ªA	Á	A)r   útype[Warning]r    Ústrr   Úbool)r   r&   r    r'   )Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__r   r	   r   r   r!   r#   r%   © r   r   r   r      sq   … Ø€FˆJÓØ€JØ02ÐÐ-Ó2òò,ð !%Ø!%ñ0à ð0ð ð0ð ó0ò*.ð !%ñ2à ð2ð ô2r   r   c                  ó   — e Zd ZdZg d¢Zy)ÚCParserÚc)NÚhighÚ
round_tripN©r)   r*   r+   r   r	   r-   r   r   r/   r/   H   s   „ Ø€FÚ:Ñr   r/   c                  ó   — e Zd ZdZy)ÚCParserHighMemoryFN©r)   r*   r+   r   r-   r   r   r5   r5   M   s   „ Ø�Jr   r5   c                  ó   — e Zd ZdZy)ÚCParserLowMemoryTNr6   r-   r   r   r8   r8   Q   s   „ Ø�Jr   r8   c                  ó   — e Zd ZdZdgZy)ÚPythonParserÚpythonNr3   r-   r   r   r:   r:   U   s   „ Ø€FØ#˜fÑr   r:   c                  ó   — e Zd ZdZdgZy)ÚPyArrowParserÚpyarrowNr3   r-   r   r   r=   r=   Z   s   „ Ø€FØ#˜fÑr   r=   c                óR   — t         j                  j                   | ddd«      d«      S )zH
    The path to the data file "test1.csv" needed for parser tests.
    ÚioÚdataÚcsvz	test1.csv)ÚosÚpathÚjoin)Údatapaths    r   Úcsv1rG   _   s"   € ô
 �7‰7�<‰<™  v¨uÓ5°{ÓCÐCr   úpyarrow is not installed©Úreason©Úmarksr;   Úc_highÚc_lowr>   ©ÚparamsÚidsc                ó¨   — | j                  «       }|j                  dk(  r2t        j                  dt        d   «       ddl}|j                  d«       |S )z)
    Fixture all of the CSV parsers.
    r>   r   Né   )Úparamr   ÚpytestÚimportorskipr   r>   Úset_cpu_count)ÚrequestÚparserr>   s      r   Úall_parsersrZ   �   sH   € ð
 �]‰]‹_€FØ‡}�}˜	Ò!Ü×Ñ˜I¤x°	Ñ':Ô;ó 	à×Ñ˜aÔ Ø€Mr   c                ó"   — | j                  «       S )z<
    Fixture all of the CSV parsers using the C engine.
    ©rT   ©rX   s    r   Úc_parser_onlyr^   ‘   ó   € ð
 �=‰=‹?Ðr   c                ó"   — | j                  «       S )zA
    Fixture all of the CSV parsers using the Python engine.
    r\   r]   s    r   Úpython_parser_onlyra   ™   r_   r   c                ó"   — | j                  «       S )zB
    Fixture all of the CSV parsers using the Pyarrow engine.
    r\   r]   s    r   Úpyarrow_parser_onlyrc   ¡   r_   r   c                 óÔ  — g } g }t        t        t        d¬«      D ]Ç  \  }}t        |d«      r|j                  d   }|j
                  D ]˜  }|j                  dk(  r@t        j                  j                  t        j                  j                  t         d¬«      gnd}t        j                   |«       |f|¬	«      }| j                  |«       |j                  |› d
|› �«       Œš ŒÉ | |dœS )za
    Return all allowable parser and float precision
    combinations and corresponding ids.
    T)ÚstrictÚvaluesr   r>   rH   rI   r-   rK   ú-rO   )ÚzipÚ_all_parsersÚ_all_parser_idsÚhasattrrf   r	   r   rU   ÚmarkÚ
single_cpuÚskipifr   rT   Úappend)rP   rQ   rY   Ú	parser_idÚ	precisionrl   rT   s          r   Ú,_get_all_parser_float_precision_combinationsrr   ©   sì   € ð
 €FØ
€CÜ ¤¬ÀtÔLò 3Ñˆ�	Ü�6˜8Ô$à—]‘] 1Ñ%ˆFØ×7Ñ7ò 	3ˆIð —=‘= IÒ-ô —K‘K×*Ñ*Ü—K‘K×&Ñ&Ü'˜Ð0Jð 'ó ñð ð ô —L‘L¡&£(¨IÐ!6¸dÔCˆEØ�M‰M˜%Ô Ø�J‰J˜)˜ A i [Ð1Õ2ñ	3ð	3ð(  SÑ)Ð)r   rP   rQ   c                ó   — | j                   S )zR
    Fixture for all allowable combinations of parser
    and float precision
    r\   r]   s    r   Úall_parsers_all_precisionsrt   Ç   s   € ð �=‰=Ðr   )é   é   é    )Ú rg   Ú_ÚutfÚUTFz{0})rP   c                ó   — | j                   S )zE
    Fixture for all possible integer values for a UTF encoding.
    r\   r]   s    r   Ú	utf_valuer}   Ý   ó   € ð
 �=‰=Ðr   c                ó   — | j                   S )zD
    Fixture for all possible string formats of a UTF encoding.
    r\   r]   s    r   Úencoding_fmtr€   å   r~   r   )*)z-1,0ç      ð¿)z-1,2e0g333333ó¿)z-1e0r�   )z+1e0ç      ð?)z+1e+0r‚   )z+1e-1çš™™™™™¹?)z+,1e1r‚   )z+1,e0r‚   )z-,1e1r�   )z-1,e0r�   )z0,1rƒ   )z1,r‚   )z,1rƒ   )z-,1gš™™™™™¹¿)z1_,r‚   )z1_234,56ç
×£p=J“@)z
1_234,56e0r„   )ry   ry   )ú-_r…   )ú-_1r†   )ú-_1e0r‡   )Ú_1rˆ   )ú_1,r‰   )ú_1,_rŠ   )Ú_1e0r‹   )ú1,2e_1rŒ   )ú1,2e1_0r�   )ú1,_2rŽ   )ú,1__2r�   )ú,1er�   )ú-,1er‘   )ú1_000,000_000r’   )ú1,e1_2r“   )úe11,2r”   )ú1e11,2r•   )ú1,2,2r–   )ú1,2_1r—   )ú	1,2e-10e1r˜   )ú--1,2r™   )ú1a_2,1rš   )z1,2E-1g¸…ëQ¸¾?)z1,2E1g      (@c                ó   — | j                   S )z¨
    Fixture for all numeric formats which should get recognized. The first entry
    represents the value to read while the second represents the expected result.
    r\   r]   s    r   Únumeric_decimalrœ   í   s   € ðh �=‰=Ðr   c                ó  — d| j                   v r| j                  d«      }n$d| j                   v r| j                  d«      d   }ny|j                  dk(  r2t        j                  j                  d¬«      }| j                  |«       yy)z‰
    Fixture that xfails a test if the engine is pyarrow.

    Use if failure is do to unsupported keywords or inconsistent results.
    rZ   rt   r   Nr>   zpyarrow doesn't support this.rI   )ÚfixturenamesÚgetfixturevaluer   rU   rl   ÚxfailÚapplymarker)rX   rY   rl   s      r   Úpyarrow_xfailr¢   $  s€   € ð ˜×,Ñ,Ñ,Ø×(Ñ(¨Ó7‰Ø	%¨×)=Ñ)=Ñ	=à×(Ñ(Ð)EÓFÀqÑI‰àØ‡}�}˜	Ò!Ü�{‰{× Ñ Ð(GÐ ÓHˆØ×Ñ˜DÕ!ð "r   c                óØ   — d| j                   v r| j                  d«      }n$d| j                   v r| j                  d«      d   }ny|j                  dk(  rt        j                  d¬«       yy)zƒ
    Fixture that skips a test if the engine is pyarrow.

    Use if failure is do a parsing failure from pyarrow.csv.read_csv
    rZ   rt   r   Nr>   z,https://github.com/apache/arrow/issues/38676rI   )rž   rŸ   r   rU   Úskip)rX   rY   s     r   Úpyarrow_skipr¥   7  sg   € ð ˜×,Ñ,Ñ,Ø×(Ñ(¨Ó7‰Ø	%¨×)=Ñ)=Ñ	=à×(Ñ(Ð)EÓFÀqÑI‰àØ‡}�}˜	Ò!Ü�‰ÐIÖJð "r   )4Ú
__future__r   rC   rU   Úpandas.compatr   Úpandas.compat._optionalr   Úpandasr   Úpandas._testingÚ_testingr   r   r/   r5   r8   r:   r=   ÚfixturerG   Ú_cParserHighMemoryÚ_cParserLowMemoryÚ_pythonParserÚ_pyarrowParserÚ_py_parsers_onlyÚ_c_parsers_onlyrT   rl   rm   rn   Ú_pyarrow_parsers_onlyri   Ú_py_parser_idsÚ_c_parser_idsÚ_pyarrow_parsers_idsrj   rZ   r^   ra   rc   rr   rt   Ú_utf_valuesÚ_encoding_sepsÚ_encoding_prefixesÚ_encoding_fmtsr}   r€   rœ   r¢   r¥   )ÚsepÚprefixs   00r   ú<module>r½      sÜ  ðÝ "ã 	ã å %Ý ,ã Ý ÷72ñ 72ôt;ˆjô ;ô
˜ô ô�wô ô%�:ô %ô
%�Jô %ð
 ‡�ñDó ðDð 'Ð Ø$Ð Ø€Ø€à!�?Ð Ø%Ð'8Ð9€à€F‡L�LØà�K‰K×"Ñ"Ø�K‰K×Ñ ;˜Ð7QÐÓRð
ôðÐ ð M�ÐLÐ#3ÐLÐ6KÐL€à�€Ø˜7Ð#€Ø!�{Ð àJ�MÐJ NÐJÐ5IÐJ€ð €‡��|¨Ô9ñó :ðð €‡��¨MÔ:ñó ;ðð €‡�Ð'¨^Ô<ñó =ðð €‡�Ð,Ð2FÔGñó Hðò*ð< €‡�Ù7Ó9¸(ÑCÙ4Ó6°uÑ=ôñó	ðò €â€Ø˜U�^Ð ð &4÷Ø!ÐBTòØ8>€v€hˆsˆe�5ÒðØó€ð
 €‡��{Ô#ñó $ðð €‡��~Ô&ñó 'ðð €‡�ò,ô.ñ^ó_.ð^ð ‡�ñ"ó ð"ð$ ‡�ñKó ñKùóAs   ÆH