Ë
    ¤eh¸  ã                  óø   — 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 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 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%dd„Z&g d¢Z'y)zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
é    )ÚannotationsN)ÚTYPE_CHECKING)ÚIS64ÚISMUSLÚPY310ÚPY311ÚPY312ÚPYPY)Úis_numpy_dev)Úpa_version_under10p1Úpa_version_under11p0Úpa_version_under13p0Úpa_version_under14p0Úpa_version_under14p1Úpa_version_under16p0Úpa_version_under17p0)ÚFc                ób   — || _         |j                   › d|› �| _        |j                  | _        | S )z<
    Bind the name/qualname attributes of the function.
    ú.)Ú__name__Ú__qualname__Ú
__module__)ÚfÚnameÚclss      úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pandas/compat/__init__.pyÚset_function_namer   )   s1   € ð €A„JØŸ™�~ Q t fÐ-€A„NØ—>‘>€A„LØ€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$   3   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*   ?   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-   K   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_macr0   W   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_armr7   c   s9   € ô ×ÑÓÐ!5Ð5ò ¼×9IÑ9IÓ9K×9VÑ9VØó:ð 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)r)   r5   r#   r   r   Úis_platform_powerr;   q   s   € ô ×ÑÓÐ!5Ð5Ð5r   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_environmentrC   }   s   € ô �:‰:�>‰>˜+ sÓ+¨sÑ2Ð2r   c                 ó¨   — t         j                  j                  j                  st	        d«      ‚t         j                  j                  j
                  S )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.
    zslzma module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)ÚpandasÚcompatÚcompressorsÚhas_lzmaÚRuntimeErrorÚLZMAFiler#   r   r   Úget_lzma_filerK   Š   sA   € ô �=‰=×$Ñ$×-Ò-Üð5ó
ð 	
ô
 �=‰=×$Ñ$×-Ñ-Ð-r   c                 ó¨   — t         j                  j                  j                  st	        d«      ‚t         j                  j                  j
                  S )a  
    Importing the `BZ2File` class from the `bz2` module.

    Returns
    -------
    class
        The `BZ2File` class from the `bz2` module.

    Raises
    ------
    RuntimeError
        If the `bz2` module was not imported correctly, or didn't exist.
    zrbz2 module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)rE   rF   rG   Úhas_bz2rI   ÚBZ2Filer#   r   r   Úget_bz2_filerO   ¡   sA   € ô �=‰=×$Ñ$×,Ò,Üð5ó
ð 	
ô
 �=‰=×$Ñ$×,Ñ,Ð,r   )r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   )r   r   r   Ústrr   ÚtypeÚreturnr   )rR   Úbool)rR   z(type[pandas.compat.compressors.LZMAFile])rR   z'type[pandas.compat.compressors.BZ2File])(Ú__doc__Ú
__future__r   r@   r)   r!   Útypingr   Úpandas.compat._constantsr   r   r   r   r	   r
   Úpandas.compat.compressorsrE   Úpandas.compat.numpyr   Úpandas.compat.pyarrowr   r   r   r   r   r   r   Úpandas._typingr   r   r$   r*   r-   r0   r7   r;   rC   rK   rO   Ú__all__r#   r   r   ú<module>r]      s}   ðñõ #ã 	Û Û 
Ý  ÷÷ ó !Ý ,÷÷ ñ ñ Ý óó	%ó	/ó	#ó	$óó	6ó
3ó.ó.-ò.�r   