
    `Vg                    t   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	 ddl
mZmZ ddlmZmZmZmZmZmZmZmZmZ erddlZej0                  dk\  Zej0                  d	k\  Zej0                  d
k\  Z ej8                         dk(  Zej<                  dkD  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(y)zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
    )annotationsN)TYPE_CHECKING)F)is_numpy_devnp_version_under1p21)	pa_version_under1p01pa_version_under2p0pa_version_under3p0pa_version_under4p0pa_version_under5p0pa_version_under6p0pa_version_under7p0pa_version_under8p0pa_version_under9p0)   	   )r   
   )r      PyPyl        c                b    || _         |j                    d| | _        |j                  | _        | S )z<
    Bind the name/qualname attributes of the function.
    .)__name____qualname__
__module__)fnameclss      W/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/pandas/compat/__init__.pyset_function_namer   ,   s1     AJ~Qtf-AN>>ALH    c                 (    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&   6   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_windowsr,   B   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.
    linuxr*   r%   r    r   is_platform_linuxr/   N   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.
    darwinr*   r%   r    r   is_platform_macr2   Z   s     <<8##r    c                 x    t        j                         dv xs# t        j                         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)r+   machine
startswithr%   r    r   is_platform_armr9   f   s9     !55 9I9I9K9V9V: r    c                 H    t         j                  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_environmentrA   t   s     ::>>+s+s22r    c                 T    	 ddl } | j                  S # t        $ r t        d      w xY w)a
  
    Importing the `LZMAFile` class from the `lzma` module.

    Returns
    -------
    class
        The `LZMAFile` class from the `lzma` module.

    Raises
    ------
    RuntimeError
        If the `lzma` module was not imported correctly, or didn't exist.
    r   Nzslzma module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)lzmaImportErrorRuntimeErrorLZMAFile)rC   s    r   get_lzma_filerG      s9    
 ==  
5
 	

s    ')r   r   r   r	   r
   r   r   r   r   r   r   )r   r   r   strreturnr   )rI   bool)rI   ztype[lzma.LZMAFile]))__doc__
__future__r   r>   r+   r#   typingr   pandas._typingr   pandas.compat.numpyr   r   pandas.compat.pyarrowr   r	   r
   r   r   r   r   r   r   rC   version_infoPY39PY310PY311python_implementationPYPYmaxsizeIS64r   r&   r,   r/   r2   r9   rA   rG   __all__r%   r    r   <module>rZ      s    # 	  
   
 
 
 
6!G#G#%x%%'61
{{U	%	/	#	$
32r    