Ë
    	êñit  ã                  ó®   — d dl mZ d dlZd dlZd dlmZ d dlmZmZ d dl	m
Z
 d dlmZ er"d dlmZ d dlmZ d d	l	mZ  ed
«      Z ed«      Zddd„Zdd„Zy)é    )ÚannotationsN)Úwraps)ÚTYPE_CHECKINGÚTypeVar)Úissue_warning)ÚUnstableWarning)ÚCallable)Ú	ParamSpec)ÚIdentityFunctionÚPÚTc                ó    — t        t        t        j                  j	                  dd«      «      «      }|sy| €d} | dz  } t        | t        «       y)a  
    Issue a warning for use of unstable functionality.

    The `warn_unstable` setting must be enabled, otherwise no warning is issued.

    Parameters
    ----------
    message
        The message associated with the warning.

    See Also
    --------
    Config.warn_unstable
    ÚPOLARS_WARN_UNSTABLEr   Nz*this functionality is considered unstable.zN It may be changed at any point without it being considered a breaking change.)ÚboolÚintÚosÚenvironÚgetr   r   )ÚmessageÚwarnings_enableds     úX/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/polars/_utils/unstable.pyÚissue_unstable_warningr      sM   € ô œC¤§
¡
§¡Ð/EÀqÓ IÓJÓKÐÙØà€Ø>ˆØØXñ€Gô �'œ?Õ+ó    c                 ó   — dd„} | S )z)Decorator to mark a function as unstable.c                ód   ‡ — t        ‰ «      dˆ fd„«       }t        j                  ‰ «      |_        |S )Nc                 óF   •— t        d‰j                  › d�«        ‰| i |¤ŽS )Nú`z` is considered unstable.)r   Ú__name__)ÚargsÚkwargsÚfunctions     €r   Úwrapperz+unstable.<locals>.decorate.<locals>.wrapper5   s,   ø€ ä" Q x×'8Ñ'8Ð&9Ð9RÐ#SÔTÙ˜TÐ, VÑ,Ð,r   )r   zP.argsr    zP.kwargsÚreturnr   )r   ÚinspectÚ	signatureÚ__signature__)r!   r"   s   ` r   Údecoratezunstable.<locals>.decorate4   s3   ø€ Ü	ˆx‹ô	-ó 
ð	-ô !(× 1Ñ 1°(Ó ;ˆÔØˆr   )r!   úCallable[P, T]r#   r(   © )r'   s    r   Úunstabler*   1   s   € óð €Or   )N)r   z
str | Noner#   ÚNone)r#   r   )Ú
__future__r   r$   r   Ú	functoolsr   Útypingr   r   Úpolars._utils.variousr   Úpolars.exceptionsr   Úcollections.abcr	   r
   r   r   r   r   r*   r)   r   r   ú<module>r2      sB   ðÝ "ã Û 	Ý ß )å /Ý -áÝ(Ý å6á�#‹€AÙ�‹€Aô,ô8r   