Ë
    çÍ:j¦	  ã                   óD   — d Z ddlZddlmZ ddlmZ ddlmZ dedefd	„Zy)
zJContains utilities to flag a feature as "experimental" in Huggingface Hub.é    N)Úwraps)ÚCallableé   )Ú	constantsÚfnÚreturnc                 ó²   ‡ ‡— ‰ j                   j                  d«      r‰ j                   dt        d«        n‰ j                   Št        ‰ «      ˆ ˆfd„«       }|S )ay  Decorator to flag a feature as experimental.

    An experimental feature triggers a warning when used as it might be subject to breaking changes without prior notice
    in the future.

    Warnings can be disabled by setting `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1` as environment variable.

    Args:
        fn (`Callable`):
            The function to flag as experimental.

    Returns:
        `Callable`: The decorated function.

    Example:

    ```python
    >>> from huggingface_hub.utils import experimental

    >>> @experimental
    ... def my_function():
    ...     print("Hello world!")

    >>> my_function()
    UserWarning: 'my_function' is experimental and might be subject to breaking changes in the future without prior
    notice. You can disable this warning by setting `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1` as environment variable.
    Hello world!
    ```
    z.__new__Nc                  óp   •— t         j                  st        j                  d‰› d�t        «        ‰| i |¤ŽS )Nú'zÇ' is experimental and might be subject to breaking changes in the future without prior notice. You can disable this warning by setting `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1` as environment variable.)r   Ú#HF_HUB_DISABLE_EXPERIMENTAL_WARNINGÚwarningsÚwarnÚUserWarning)ÚargsÚkwargsr   Únames     €€úx/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/huggingface_hub/utils/_experimental.pyÚ	_inner_fnzexperimental.<locals>._inner_fn9   s@   ø€ ä×<Ò<Ü�M‰MØ�D�6ð ð ô ô	ñ �4Ð"˜6Ñ"Ð"ó    )Ú__qualname__ÚendswithÚlenr   )r   r   r   s   ` @r   Úexperimentalr      sU   ù€ ð> 35·/±/×2JÑ2JÈ:Ô2Vˆ2�?‰?Ð-œc *›oÐ-Ñ.Ð\^×\kÑ\k€Dä
ˆ2ƒYô#ó ð#ð Ðr   )	Ú__doc__r   Ú	functoolsr   Útypingr   Ú r   r   © r   r   ú<module>r      s*   ðñ Qã Ý Ý å ð,�Xð , (ô ,r   