Ë
    ðmxif  ã                  ó4   — d dl mZ d dlmZ dd„Zdd„Zd	d„Zy)
é    )Úannotations)Úwarnc                 óp  — ddl } ddlm} ddl}t	         ||j
                  «      j                  «      }| j                  «       }d}	 |re| j                  |«      }|j                  |«      s*t        |j                  dd«      x}r#|j                  d«      r|j                  }|dz  }n	 ~|S |rŒe	 ~|S # ~w xY w)zÎFind the first place in the stack that is not inside narwhals.

    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           úK/home/htdocs/ttos/venv/lib/python3.12/site-packages/narwhals/_exceptions.pyÚfind_stacklevelr      sÀ   € ó Ýãä‘$�r—{‘{Ó#×*Ñ*Ó+€Gð × Ñ Ó"€EØ	€AðÙØ—O‘O EÓ*ˆEØ×Ñ Ô(Ü$ U§\¡\°=À$ÓGÐG�ÐGà×'Ñ'Ð(9Ô:àŸ™�Ø�Q‘‘àð Ø€Hò' ð ð Ø€Høñ ús   ÁA B2 Â+B2 Â2B5c                ó8   — t        | t        t        «       ¬«       y)zßIssue 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$   -   s   € ô 	�Ô#5Ä/ÓBSÖTó    c                ó0   — t        | |t        «       ¬«       y )Nr   )r   r   )r   r    s     r   Úissue_warningr'   8   s   € Ü� 8¼Ó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   ðÝ "å ó$óNUôKr%   