
    +j                       d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	m
Z
mZmZmZmZmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZ erddl m!Z! ddZ"ddZ#ddZ$ddZ%ddZ&ddZ'ddZ(ddZ)ddZ*g dZ+dS )zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
    )annotationsN)TYPE_CHECKING)CHAINED_WARNING_DISABLEDIS64ISMUSLPY312PY314PYPYWASM)is_numpy_dev)HAS_PYARROWPYARROW_INSTALLEDPYARROW_MIN_VERSIONpa_version_under14p0pa_version_under14p1pa_version_under16p0pa_version_under17p0pa_version_under18p0pa_version_under19p0pa_version_under20p0pa_version_under21p0pa_version_under22p0pa_version_under23p0)Ffr   namestrclstypereturnc                N    || _         |j          d| | _        |j        | _        | S )z<
    Bind the name/qualname attributes of the function.
    .)__name____qualname__
__module__)r   r   r   s      Z/home/wildlama/visual-decline/.venv/lib/python3.11/site-packages/pandas/compat/__init__.pyset_function_namer'   0   s0     AJ--t--AN>ALH    boolc                 "    t           j        dk    S )z
    Checking if the running platform is little endian.

    Returns
    -------
    bool
        True if the running platform is little endian.
    little)sys	byteorder r(   r&   is_platform_little_endianr/   :   s     =H$$r(   c                     t           j        dv S )z
    Checking if the running platform is windows.

    Returns
    -------
    bool
        True if the running platform is windows.
    )win32cygwinr,   platformr.   r(   r&   is_platform_windowsr5   F   s     <...r(   c                 "    t           j        dk    S )z
    Checking if the running platform is linux.

    Returns
    -------
    bool
        True if the running platform is linux.
    linuxr3   r.   r(   r&   is_platform_linuxr8   R   s     <7""r(   c                 "    t           j        dk    S )z
    Checking if the running platform is mac.

    Returns
    -------
    bool
        True if the running platform is mac.
    darwinr3   r.   r(   r&   is_platform_macr;   ^   s     <8##r(   c                 x    t          j                    dv p%t          j                                        d          S )z
    Checking if the running platform use ARM architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )arm64aarch64armv)r4   machine
startswithr.   r(   r&   is_platform_armrB   j   s>     !55 9I9K9K9V9V: : r(   c                 ,    t          j                    dv S )z
    Checking if the running platform use Power architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )ppc64ppc64ler4   r@   r.   r(   r&   is_platform_powerrG   x   s     !555r(   c                 0    t          j                    dk    S )z
    Checking if the running platform use riscv64 architecture.

    Returns
    -------
    bool
        True if the running platform uses riscv64 architecture.
    riscv64rF   r.   r(   r&   is_platform_riscv64rJ      s     **r(   c                 J    t           j                            dd          dk    S )z
    Checking if running in a continuous integration environment by checking
    the PANDAS_CI environment variable.

    Returns
    -------
    bool
        True if the running in a continuous integration environment.
    	PANDAS_CI01)osenvirongetr.   r(   r&   is_ci_environmentrR      s     :>>+s++s22r(   )r   r   r   r   r   r	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r    r   )r    r)   ),__doc__
__future__r   rO   r4   r,   typingr   pandas.compat._constantsr   r   r   r   r	   r
   r   pandas.compat.numpyr   pandas.compat.pyarrowr   r   r   r   r   r   r   r   r   r   r   r   r   pandas._typingr   r'   r/   r5   r8   r;   rB   rG   rJ   rR   __all__r.   r(   r&   <module>r[      s9    # " " " " " 				  



                              - , , , , ,                                !         	% 	% 	% 	%	/ 	/ 	/ 	/	# 	# 	# 	#	$ 	$ 	$ 	$   	6 	6 	6 	6	+ 	+ 	+ 	+
3 
3 
3 
3  r(   