� ���gI��:�dZddlZddlmZddlmZdedefd�ZdS)zCContains utilities to flag a feature as "experimental" in datasets.�N��wraps)�Callable�fn�returnc�<��t����fd���}|S)alDecorator to flag a feature as experimental. An experimental feature trigger a warning when used as it might be subject to breaking changes in the future. Args: fn (`Callable`): The function to flag as experimental. Returns: `Callable`: The decorated function. Example: ```python >>> from datasets.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. Hello world! ``` c�Z��tjd�j�d�t���|i|��S)N�'zI' is experimental and might be subject to breaking changes in the future.)�warnings�warn�__name__� UserWarning)�args�kwargsrs ��k/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/datasets/utils/experimental.py� _inner_fnzexperimental.<locals>._inner_fn#sA���� � g��� g� g� g� � � � ��r�4�"�6�"�"�"�r)rrs` r� experimentalrs6���6 �2�Y�Y�#�#�#�#��Y�#� �r)�__doc__r � functoolsr�typingrr�rr�<module>rsd��I�I�����������������#�X�#�(�#�#�#�#�#�#r
Memory