§
    Ò¬¸jo  ã                  ó¼   — 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dS )é    )ÚannotationsN)Úwraps)ÚTYPE_CHECKINGÚTypeVar)Úissue_warning)ÚUnstableWarning)ÚCallable)Ú	ParamSpec)ÚIdentityFunctionÚPÚTÚmessageú
str | NoneÚreturnÚNonec                ó¾   — t          t          t          j                             dd¦  «        ¦  «        ¦  «        }|sdS | €d} | dz  } t          | t          ¦  «         dS )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   )r   Úwarnings_enableds     úf/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/polars/_utils/unstable.pyÚissue_unstable_warningr      sg   € õ �C¥¤
§¢Ð/EÀqÑ IÔ IÑJÔJÑKÔKÐØð Øˆà€Ø>ˆØØXñ€Gõ �'�?Ñ+Ô+Ð+Ð+Ð+ó    r   c                 ó   — dd„} | S )z)Decorator to mark a function as unstable.ÚfunctionúCallable[P, T]r   c                óp   ‡ — t          ‰ ¦  «        dˆ fd„¦   «         }t          j        ‰ ¦  «        |_        |S )	NÚargsúP.argsÚkwargsúP.kwargsr   r   c                 óD   •— t          d‰j        › d�¦  «          ‰| i |¤ŽS )Nú`z` is considered unstable.)r   Ú__name__)r!   r#   r   s     €r   Úwrapperz+unstable.<locals>.decorate.<locals>.wrapper5   s5   ø€ å"Ð#S xÔ'8Ð#SÐ#SÐ#SÑTÔTÐTØ�8˜TÐ, VÐ,Ð,Ð,r   )r!   r"   r#   r$   r   r   )r   ÚinspectÚ	signatureÚ__signature__)r   r(   s   ` r   Údecoratezunstable.<locals>.decorate4   sK   ø€ Ý	ˆx‰Œð	-ð 	-ð 	-ð 	-ð 	-ñ 
Œð	-õ !(Ô 1°(Ñ ;Ô ;ˆÔØˆr   )r   r   r   r   © )r,   s    r   Úunstabler.   1   s   € ðð ð ð ð €Or   )N)r   r   r   r   )r   r   )Ú
__future__r   r)   r   Ú	functoolsr   Útypingr   r   Úpolars._warningsr   Úpolars.exceptionsr   Úcollections.abcr	   r
   Úpolars._utils.variousr   r   r   r   r.   r-   r   r   ú<module>r6      s  ðØ "Ð "Ð "Ð "Ð "Ð "à €€€Ø 	€	€	€	Ø Ð Ð Ð Ð Ð Ø )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à *Ð *Ð *Ð *Ð *Ð *Ø -Ð -Ð -Ð -Ð -Ð -àð Ø(Ð(Ð(Ð(Ð(Ð(Ø Ð Ð Ð Ð Ð à6Ð6Ð6Ð6Ð6Ð6àˆ	�#‰Œ€AØˆ�‰Œ€Að,ð ,ð ,ð ,ð ,ð8ð ð ð ð ð r   