ó
    ¦ñ:i¹  ã                   ód  • S SK r S SKJr  S SKJr  S SKrS SKJrJr  S SK	J
r
JrJr  \R                  " S5      rS rS rS S	 jrS!S
\\   S\4S jjr\R(                  R+                  S\" 5       5      S 5       r\R(                  R+                  S\" 5       5      S 5       r\S:X  Ga
  S SKrS SKr\R6                  " SS9r\R;                  SSS9  \R=                  5       r\RA                  \RB                  5      r"\RB                  RG                  S5      r$\%" \$5      S:¼  a!  \ RL                  " S\$S   5      (       a  \$S   r'OSr'\(" \" \"S   \'5      5      \"S'   \"S   (       a,  \" \"\RB                  S9r)\*" \)5        \RV                  " S5        g\*" SRY                  \RB                  5      5        gg)"é    N)Ú	signature)ÚOptional)Úenable_halving_search_cvÚenable_iterative_imputer)Úall_displaysÚall_estimatorsÚall_functionsznumpydoc.validatec               #   ó´  #   • [        5       n [        5       nX-    H¸  u  p#UR                  S5      (       a  M  / n[        U5       H_  nUR                  S5      (       a  M  [	        X25      n[        US5      (       d  [        U[        5      (       d  MN  UR                  U5        Ma     UR                  S 5        [        U[        S9 H  nX64v •  M
     Mº     g 7f)NÚ_Ú__call__)Úkey)r   r   Ú
startswithÚdirÚgetattrÚhasattrÚ
isinstanceÚpropertyÚappendÚsortedÚstr)Ú
estimatorsÚdisplaysÚnameÚKlassÚmethodsÚ
method_objÚmethods          Ú`/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/sklearn/tests/test_docstrings.pyÚget_all_methodsr      s°   é € ÜÓ!€JÜ‹~€HØ!Ô,‰ˆØ�?‰?˜3×ÑáØˆÜ˜–JˆDØ�‰˜s×#Ñ#ÙÜ  Ó-ˆJÜ�z :×.Ñ.´*¸ZÌ×2RÓ2RØ—‘˜tÖ$ñ ð 	�‰�tÔä˜W¬#Ô.ˆFØ�-Ôó /ò -ùs   ‚BCÂACc               #   ó”   #   • [        5       n U  H4  u  pSUR                  ;  d  M  UR                   SUR                   3v •  M6     g 7f)Nzutils.fixesÚ.)r	   Ú
__module__Ú__name__)Ú	functionsr   Úfuncs      r   Úget_all_functions_namesr&   %   s>   é € Ü“€IÛ‰ˆà §¡Õ/Ø—_‘_Ð% Q t§}¡} oÐ6Ô6ò ùs
   ‚ A¦"Ac              #   ó®   #   • U  HK  u  p4US;   a  M  US;   a(  Ub%  Ub"  [        X!5      n[        U[        5      (       a  M;  Ub  US;   a  MF  X44v •  MM     g7f)zY
Ignore some errors based on the method type.

These rules are specific for scikit-learn.)ÚRT02ÚGL01ÚGL02)ÚPR02ÚGL08N)ÚEX01ÚSA01ÚES01)r   r   r   )Úerrorsr   r   ÚcodeÚmessager   s         r   Úfilter_errorsr3   -   sl   é € ó
  ‰ˆð Ð+Ó+Ùð Ð#Ó#¨Ñ(9¸fÑ>PÜ  Ó/ˆJÜ˜*¤h×/Ñ/Ùð Ñ $Ð*BÓ"BÙØˆmÔòK  ùs   ‚AAr   Úreturnc                 óz  • Uc(  [        US5      (       a  SnOUc  [        S5      e[        eUb3  [        X5      n [	        [        U5      5      nUR                  S-   U-   nOSnUnSSR                  [	        U S   5      XT-   U S   S	S
R                  S U S    5       5      /5      -   nU$ ! [         a    Sn Njf = f)aJ  Pretty print original docstring and the obtained errors

Parameters
----------
res : dict
    result of numpydoc.validate.validate
Klass : {Estimator, Display, None}
    estimator object or None
method : str
    if estimator is not None, either the method name or None.

Returns
-------
str
   String representation of the error.
Ú__init__z0At least one of Klass, method should be providedzM
Parsing of the method signature failed, possibly because this is a property.r!   Ú z

ÚfileÚ	docstringz# ErrorsÚ
c              3   óH   #   • U  H  u  pS R                  X5      v •  M     g7f)z	 - {}: {}N)Úformat)Ú.0r1   r2   s      r   Ú	<genexpr>Úrepr_errors.<locals>.<genexpr>‰   s#   é € ð ÚGT±m°d�×"Ñ" 4×1Ð1Â}ùs   ‚ "r0   )	r   Ú
ValueErrorÚNotImplementedErrorr   r   r   Ú	TypeErrorr#   Újoin)Úresr   r   ÚobjÚobj_signatureÚobj_nameÚmsgs          r   Úrepr_errorsrI   Z   sê   € ð" �~Ü�5˜*×%Ñ%Ø‰FØ‰]ÜÐOÓPÐPä%Ð%àÑÜ�eÓ$ˆð	Ü¤	¨#£Ó/ˆMð —>‘> CÑ'¨&Ñ0‰àˆØˆà
�6—;‘;ä��F‘ÓØÑ$Ø�ÑØØ�I‰Iñ ØGJÈ8Â}óó ð	
ó
ñ 
€Cð €Jøô/ ó 	ð7ò ð	ús   »B+ Â+B:Â9B:Úfunction_namec                 ó¤   • [         R                  U 5      n[        [        US   SS95      US'   US   (       a  [	        USU  3S9n[        U5      eg)z)Check function docstrings using numpydoc.r0   Úfunction©r   zTested function: N)Únumpydoc_validationÚvalidateÚlistr3   rI   r@   )rJ   ÚrequestrD   rH   s       r   Útest_function_docstringrR   ‘   sW   € ô ×
&Ñ
& }Ó
5€Cäœ s¨8¡}¸ZÑHÓI€Cˆ�Mà
ˆ8‡}Ü˜#Ð(9¸-¸Ð&IÑJˆä˜‹oÐð ó    zKlass, methodc                 ó  • U R                   nX0R                  /nUb  UR                  U5        SR                  U5      n[        R                  U5      n[        [        US   XS95      US'   US   (       a  [        XPU5      n[        U5      eg )Nr!   r0   )r   )
r"   r#   r   rC   rN   rO   rP   r3   rI   r@   )r   r   rQ   Úbase_import_pathÚimport_pathrD   rH   s          r   Útest_docstringrW   ž   s‡   € à×'Ñ'ÐØ#§^¡^Ð4€KØÑØ×Ñ˜6Ô"à—(‘(˜;Ó'€Kä
×
&Ñ
& {Ó
3€Cäœ s¨8¡}°fÑJÓK€Cˆ�Mà
ˆ8‡}Ü˜# fÓ-ˆä˜‹oÐð rS   Ú__main__z!Validate docstring with numpydoc.)ÚdescriptionrV   zImport path to validate)Úhelpr!   é   z(?:[A-Z][a-z]*)+éþÿÿÿéÿÿÿÿr0   rM   é   z#All docstring checks passed for {}!)N)NN)-ÚreÚinspectr   Útypingr   ÚpytestÚsklearn.experimentalr   r   Úsklearn.utils.discoveryr   r   r	   ÚimportorskiprN   r   r&   r3   r   rI   ÚmarkÚparametrizerR   rW   r#   ÚargparseÚsysÚArgumentParserÚparserÚadd_argumentÚ
parse_argsÚargsrO   rV   rD   ÚsplitÚimport_path_sectionsÚlenÚmatchr   rP   rH   ÚprintÚexitr<   © rS   r   Ú<module>rv      sº  ðÛ 	Ý Ý ã ÷÷ PÑ Oà×)Ò)Ð*=Ó>Ð ò ò(7ô*ñZ4¨°#©ð 4À#õ 4ðn ‡�×Ñ˜Ñ*AÓ*CÓDñ	ó Eð	ð ‡�×Ñ˜©/Ó*;Ó<ñó =ðð$ ˆzÔÛÛà×$Ò$Ð1TÑU€FØ
×Ñ˜Ð,EÐÑFà×ÑÓ€Dà
×
&Ñ
& t×'7Ñ'7Ó
8€Cà×+Ñ+×1Ñ1°#Ó6Ðñ
 ÐÓ  AÓ%¨"¯(ª(ØÐ1°"Ñ5÷+ñ +ð & bÑ)‰àˆá™ s¨8¡}°fÓ=Ó>€Cˆ�Mà
ˆ8‡}Ù˜# d×&6Ñ&6Ñ7ˆáˆcŒ
Ø�Š��áÐ3×:Ñ:¸4×;KÑ;KÓLÕMð? rS   