gL idZddlmZddlZddlZddlZddlmZddlm Z m Z m Z m Z m Z mZmZmZddlZddlmZddlmZmZmZmZmZmZmZmZmZmZm Z m!Z!erddl"m#Z#dd Z$dd Z%dd Z&dd Z'dd Z(ddZ)ddZ*ddZ+ddZ,ddZ-gdZ.y)zn compat ====== Cross-compatible functions for different versions of Python. Other items: * platform checker ) annotationsN) TYPE_CHECKING)IS64ISMUSLPY310PY311PY312PY314PYPYWARNING_CHECK_DISABLED) is_numpy_dev) HAS_PYARROWpa_version_under10p1pa_version_under11p0pa_version_under13p0pa_version_under14p0pa_version_under14p1pa_version_under16p0pa_version_under17p0pa_version_under18p0pa_version_under19p0pa_version_under20p0pa_version_under21p0)Fcb||_|jd||_|j|_|S)z< Bind the name/qualname attributes of the function. .)__name__ __qualname__ __module__)fnameclss \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/compat/__init__.pyset_function_namer$0s1AJ ~Qtf-AN>>AL Hc(tjdk(S)z Checking if the running platform is little endian. Returns ------- bool True if the running platform is little endian. little)sys byteorderr%r#is_platform_little_endianr+:s ==H $$r%c&tjdvS)z Checking if the running platform is windows. Returns ------- bool True if the running platform is windows. )win32cygwinr(platformr*r%r#is_platform_windowsr1Fs <<. ..r%c(tjdk(S)z Checking if the running platform is linux. Returns ------- bool True if the running platform is linux. linuxr/r*r%r#is_platform_linuxr4Rs <<7 ""r%c(tjdk(S)z Checking if the running platform is mac. Returns ------- bool True if the running platform is mac. darwinr/r*r%r#is_platform_macr7^s <<8 ##r%cxtjdvxs#tjjdS)z Checking if the running platform use ARM architecture. Returns ------- bool True if the running platform uses ARM architecture. )arm64aarch64armv)r0machine startswithr*r%r#is_platform_armr>js9    !5 5 9I9I9K9V9V:r%c.tjdvS)z Checking if the running platform use Power architecture. Returns ------- bool True if the running platform uses ARM architecture. )ppc64ppc64le)r0r<r*r%r#is_platform_powerrBxs    !5 55r%cHtjjdddk(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_CI01)osenvirongetr*r%r#is_ci_environmentrJs ::>>+s +s 22r%ctjjjs t dtjjj 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.)pandascompat compressorshas_lzma RuntimeErrorLZMAFiler*r%r# get_lzma_filerRsA == $ $ - - 5  == $ $ - --r%ctjjjs t dtjjj 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.)rLrMrNhas_bz2rPBZ2Filer*r%r# get_bz2_filerVsA == $ $ , , 5  == $ $ , ,,r%)r rrrrrrrrrrrrrrrrr r r r )r rr!strr"typereturnr)rYbool)rYz(type[pandas.compat.compressors.LZMAFile])rYz'type[pandas.compat.compressors.BZ2File])/__doc__ __future__rrGr0r(typingrpandas.compat._constantsrrrrr r r r pandas.compat.compressorsrLpandas.compat.numpyr pandas.compat.pyarrowrrrrrrrrrrrrpandas._typingrr$r+r1r4r7r>rBrJrRrV__all__r*r%r#rds#     !,       % / # $  6 3..-. r%