
    rbi2	                     8    d dl mZ d dlZdZd Z e             dS )    )VersionNaU  Disallowed deserialization of 'arrow.py_extension_type':
storage_type = {storage_type}
serialized = {serialized}
pickle disassembly:
{pickle_disassembly}

Reading of untrusted Parquet or Feather files with a PyExtensionType column
allows arbitrary code execution.
If you trust this file, you can enable reading the extension type by one of:

- upgrading to pyarrow >= 14.0.1, and call `pa.PyExtensionType.set_auto_load(True)`
- install pyarrow-hotfix (`pip install pyarrow-hotfix`) and disable it by running
  `import pyarrow_hotfix; pyarrow_hotfix.uninstall()`

We strongly recommend updating your Parquet/Feather files to use extension types
derived from `pyarrow.ExtensionType` instead, and register this type explicitly.
See https://arrow.apache.org/docs/dev/python/extending_types.html#defining-extension-types-user-defined-types
for more details.
c                     t          t          j                  t          d          k    rd S 	 dd l} d S # t          $ r Y nw xY wt          t          dd          rd S  G d dt          j                  }t          j        d           t          j         |t          j	                    d                     dt          _
        d S )	Nz14.0.1r   _hotfix_installedFc                   *    e Zd Zd Zed             ZdS )-patch_pyarrow.<locals>.ForbiddenExtensionTypec                     dS )N     )selfs    l/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/geopandas/io/_pyarrow_hotfix.py__arrow_ext_serialize__zEpatch_pyarrow.<locals>.ForbiddenExtensionType.__arrow_ext_serialize__.   s    3r	   c                     dd l }dd l}|                                }|                    ||           t	          t
                              |||                                                    )Nr   )storage_type
serializedpickle_disassembly)iopickletoolsStringIOdisRuntimeError
_ERROR_MSGformatgetvalue)clsr   r   r   r   outs         r   __arrow_ext_deserialize__zGpatch_pyarrow.<locals>.ForbiddenExtensionType.__arrow_ext_deserialize__1   ss    III++--COOJ,,,!!!-)'*||~~ "    r	   N)__name__
__module____qualname__r   classmethodr   r
   r	   r   ForbiddenExtensionTyper   -   s>        	 	 	 
	 	 
	 	 	r	   r!   zarrow.py_extension_typeT)r   pyarrow__version__pyarrow_hotfixImportErrorgetattrExtensionTypeunregister_extension_typeregister_extension_typenullr   )r$   r!   s     r   patch_pyarrowr+      s    w"##wx'8'888
 	     w+U33     !6   & %&?@@@#w|~~/HII   !%Gs   4 
A A)packaging.versionr   r"   r   r+   r
   r	   r   <module>r-      sH    % % % % % % 
*+% +% +%\ r	   