gL idZddlmZddlmZddlmZ ddlZdZ ddl Z dZ d dZ erGd d ejZ e rGd d e jZyy#e $rdZYHwxYw#e $rdZ YNwxYw)zC Patched ``BZ2File`` and ``LZMAFile`` to handle pickle protocol 5. ) annotations) PickleBuffer)PY310NTFct|ttfr|St|ts t|} |j S#t $rt |jdcYSwxYw)z Return some 1-D `uint8` typed buffer. Coerces anything that does not match that description to one that does without copying if possible (otherwise will copy). A) isinstancebytes bytearrayrraw BufferError memoryviewtobytes)bs _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/compat/compressors.pyflatten_bufferrs_!eY'( a & O*uuw *!}$$S))*sA#A+*A+c,eZdZes dfd ZxZSxZS)BZ2Filec4t|t|SNsuperwriterselfr __class__s rrz BZ2File.write7w}^A%677returnint__name__ __module__ __qualname__rr __classcell__rs@rrr4 8 8rrc,eZdZes dfd ZxZSxZS)LZMAFilec4t|t|Srrrs rrzLZMAFile.writeFrrrr!r&s@rr)r)Cr'rr))rz-bytes | bytearray | memoryview | PickleBufferrzbytes | bytearray | memoryview)__doc__ __future__rpicklerpandas.compat._constantsrbz2has_bz2 ImportErrorlzmahas_lzmarrr)rrr5s#*GH *4*#*0  8#++ 8  84== 8 eGHs"AA(A%$A%(A21A2