
    h                    :    S SK Jr  S SKJr  SS jrSS jrS	S jrg)
    )annotations)warnc                    SSK n SSKJn  SSKn[	        U" UR
                  5      R                  5      nU R                  5       nSn U(       aw  U R                  U5      nUR                  U5      (       d4  [        UR                  SS5      =n(       a(  UR                  S5      (       a  UR                  nUS-  nOO
U(       a  Mw   AU$ ! Af = f)zFind the first place in the stack that is not inside narwhals.

Returns:
    Stacklevel.

Taken from:
https://github.com/pandas-dev/pandas/blob/ab89c53f48df67709a533b6a95ce3d911871a0a8/pandas/util/_exceptions.py#L30-L51
r   N)Pathco_qualnamezsingledispatch.   )inspectpathlibr   narwhalsstr__file__parentcurrentframegetfile
startswithgetattrf_codef_back)r	   r   nwpkg_dirframenfnamequalnames           gC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\narwhals/_exceptions.pyfind_stacklevelr      s     $r{{#**+G   "E	AOOE*E(($U\\=$GGG''(9::Q e  H s   A<C	 C	 	Cc                2    [        U [        [        5       S9  g)zIssue a deprecation warning.

Arguments:
    message: The message associated with the warning.
    _version: Narwhals version when the warning was introduced. Just used for internal
        bookkeeping.
messagecategory
stacklevelN)r   DeprecationWarningr   )r   _versions     r   issue_deprecation_warningr$   0   s     	#5/BST    c                (    [        X[        5       S9  g )Nr   )r   r   )r   r    s     r   issue_warningr'   ;   s    8IJr%   N)returnint)r   r   r#   r   r(   None)r   r   r    ztype[Warning]r(   r*   )
__future__r   warningsr   r   r$   r'    r%   r   <module>r.      s    " 'TUKr%   