+
    QV-j  ã                   ój   € ^ RI t ^ RIHt ^ RIHt ^ RIHtHt R R ltRR/R R	 llt	R
R/R R llt
R# )é    N)ÚIterable)Úwraps)Ú	ParameterÚ	signaturec                ó$   € V ^8„  d   QhR\         /# )é   Úversion©Ústr)Úformats   "Ús/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/huggingface_hub/utils/_deprecation.pyÚ__annotate__r      s   € ÷ *,ñ *,¬3ñ *,ó    c                ó   a € V 3R lpV# )a*  Decorator for methods that issues warnings for positional arguments.
Using the keyword-only argument syntax in pep 3102, arguments after the
* will issue a warning when passed as a positional argument.

Args:
    version (`str`):
        The version when positional arguments will result in error.
c                 ól  <a aaa€ \        S 4      o. o. oSP                  P                  4        Fi  w  rVP                  \        P
                  8X  d   SP                  V4       K7  VP                  \        P                  8X  g   KX  SP                  V4       Kk  	  \        S 4      VV VVV3R  l4       pV# )c            	      óÎ  <€ \        V 4      \        S4      ,
          pV^ 8:  d	   S! V / VB # \        SRV W) R 4       UUu. uF*  w  r4\        V\        4      '       d	   V RV R2MV RV 2NK,  	  pppRP	                  V4      p\
        P                  ! RSP                   RV RS
 R	2\        4       VP                  \        S	P                  V 4      4       S! R
/ VB # u uppi )r   Nz='Ú'Ú=ú, z+Deprecated positional argument(s) used in 'z': pass z as keyword args. From version z? passing these as positional arguments will result in an error,© )ÚlenÚzipÚ
isinstancer   ÚjoinÚwarningsÚwarnÚ__name__ÚFutureWarningÚupdateÚ
parameters)ÚargsÚkwargsÚ
extra_argsÚnameÚargÚargs_msgÚall_argsÚfÚkwonly_argsÚsigr	   s   *,    €€€€€r   Úinner_fÚU_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.inner_f   s  ø€ ä˜T›¤S¨£]Õ2ˆJØ˜QŒÙ˜$Ð) &Ñ)Ð)ô "% [°°*Ð%=¸tÀKÀLÐ?QÔ!Rôá!R‘I�Dô &0°´S×%9Ò%9�4�&˜˜3˜%˜qÑ!À$ÀÀqÈÈ¸ÒNÙ!Rð ñ ð —y‘y Ó*ˆHÜ�MŠMØ=¸a¿j¹j¸\ð JØ�:Ð<¸W¸Ið FDðDô ô	ð �M‰Mœ#˜cŸn™n¨dÓ3Ô4Ù‘;�v‘;Ðùós   Á0C!)	r   r    ÚitemsÚkindr   ÚPOSITIONAL_OR_KEYWORDÚappendÚKEYWORD_ONLYr   )r(   r$   Úparamr+   r'   r)   r*   r	   s   f   @@@€r   Ú _inner_deprecate_positional_argsÚD_deprecate_positional_args.<locals>._inner_deprecate_positional_args   s‘   ü€ Ü˜‹lˆØˆØˆØŸ>™>×/Ñ/Ö1‰KˆDØ�z‰zœY×<Ñ<Ô<Ø—‘ Ö%Ø—‘œy×5Ñ5Ö5Ø×"Ñ" 4Ö(ñ	 2ô 
ˆq‹÷	ð 	ó 
ð	ð& ˆr   r   )r	   r3   s   d r   Ú_deprecate_positional_argsr5      s   ø€ õð@ ,Ð+r   Úcustom_messagec                ó`   € V ^8„  d   QhR\         R\        \         ,          R\         R,          /# )r   r	   Údeprecated_argsr6   N)r   r   )r   s   "r   r   r   4   s0   € ÷ 5,ñ 5,äð5,ô œc•]ð5,ô ˜$•Jñ	5,r   c                ó   a aa€ VVV 3R lpV# )aÃ  Decorator to issue warnings when using deprecated arguments.

TODO: could be useful to be able to set a custom error message.

Args:
    version (`str`):
        The version when deprecated arguments will result in error.
    deprecated_args (`list[str]`):
        List of the arguments to be deprecated.
    custom_message (`str`, *optional*):
        Warning message that is raised. If not passed, a default warning message
        will be created.
c                 óR   <a a€ \        S 4      o\        S 4      VVV VV3R  l4       pV# )c                  óD  <€ . p\        V SP                  P                  4       4       F3  w  r4VP                  S	9   g   K  VP	                  VP                  4       K5  	  VP                  4        FC  w  rVVS	9   g   K  VSP                  V,          P                  8w  g   K2  VP	                  V4       KE  	  \        V4      ^ 8”  dU   RS
P                   RRP                  V4       RS R2pSe   VRS,           ,          p\        P                  ! V\        4       S
! V / VB # )r   z Deprecated argument(s) used in 'z': r   z&. Will not be supported from version 'ú'.z

)r   r    Úvaluesr$   r0   r-   Údefaultr   r   r   r   r   r   )r!   r"   Úused_deprecated_argsÚ_Ú	parameterÚ
kwarg_nameÚkwarg_valueÚmessager6   r8   r(   r*   r	   s   *,      €€€€€r   r+   ÚO_deprecate_arguments.<locals>._inner_deprecate_positional_args.<locals>.inner_fK   s
  ø€ ð $&Ð Ü # D¨#¯.©.×*?Ñ*?Ó*AÖ B‘�Ø—>‘> _Ö4Ø(×/Ñ/°	·±Ö?ñ !Cð ,2¯<©<®>Ñ'�
ð  /Ö1à# s§~¡~°jÕ'A×'IÑ'IÖIà(×/Ñ/°
Ö;ñ ,:ô Ð'Ó(¨1Ô,à6°q·z±z°lð CØŸ	™	Ð"6Ó7Ð8ð 9!Ø!( 	¨ð-ð ð
 "Ò-Ø˜v¨Õ6Õ6�GÜ—’˜g¤}Ô5Ù�dÐ%˜fÑ%Ð%r   )r   r   )r(   r+   r*   r6   r8   r	   s   f @€€€r   r3   Ú>_deprecate_arguments.<locals>._inner_deprecate_positional_argsH   s.   ú€ Ü˜‹lˆä	ˆq‹÷	&ð 	&ó 
ð	&ð6 ˆr   r   )r	   r8   r6   r3   s   ddd r   Ú_deprecate_argumentsrG   4   s   ú€ ÷(ðB ,Ð+r   rD   c                ó>   € V ^8„  d   QhR\         R\         R,          /# )r   r	   rD   Nr
   )r   s   "r   r   r   l   s   € ÷ #ñ #¤#ð #´°dµ
ñ #r   c                ó   a a€ VV 3R lpV# )a'  Decorator to issue warnings when using a deprecated method.

Args:
    version (`str`):
        The version when deprecated arguments will result in error.
    message (`str`, *optional*):
        Warning message that is raised. If not passed, a default warning message
        will be created.
c                 ó¤   <a a€ S P                   oSR 8X  d#   S P                  P                  R4      ^ ,          o\        S 4      V VVV3R l4       pV# )Ú__init__Ú.c                  óž   <€ R S RSP                    RS R2pSe   VRS,           ,          p\        P                  ! V\        4       S! V / VB # )r   z	' (from 'z3') is deprecated and will be removed from version 'r<   Ú )Ú
__module__r   r   r   )r!   r"   Úwarning_messager(   rD   r$   r	   s   *, €€€€r   r+   ÚC_deprecate_method.<locals>._inner_deprecate_method.<locals>.inner_f|   s^   ø€ ð �D�6˜ 1§<¡< .Ð0cÐdkÐclÐlnÐoð ð Ò"Ø 3¨¥=Õ0�Ü�MŠM˜/¬=Ô9Ù�dÐ%˜fÑ%Ð%r   )r   Ú__qualname__Úsplitr   )r(   r+   r$   rD   r	   s   f @€€r   Ú_inner_deprecate_methodÚ2_deprecate_method.<locals>._inner_deprecate_methodw   sJ   ú€ Ø�z‰zˆØ�:ÔØ—>‘>×'Ñ'¨Ó,¨QÕ/ˆDä	ˆq‹÷	&ó 
ð	&ð ˆr   r   )r	   rD   rT   s   dd r   Ú_deprecate_methodrV   l   s   ù€ öð" #Ð"r   )r   Úcollections.abcr   Ú	functoolsr   Úinspectr   r   r5   rG   rV   r   r   r   Ú<module>rZ      s8   ðÛ Ý $Ý ß (õ*,ðZ5,ð "&÷	5,ðp#¸T÷ #ñ #r   