
    Ch                         S r SSKrSSKrSSKJr  \" SS5      r " S S5      rS r\" S	SS
\SS9rS r	S r
\" SSS\
SS9r\" SSS\	SS9r\" \\\S.5      rg)z
Lightweight options machinery.

Based on https://github.com/topper-123/optioneer, but simplified (don't deal
with nested options, deprecated options, ..), just the attribute-style dict
like holding the options and giving a nice repr.
    N)
namedtupleOptionz(key default_value doc validator callbackc                   D   ^  \ rS rSrSrU 4S jrS rS rS rS r	Sr
U =r$ )	Options   z5Provide attribute-style access to configuration dict.c                    > [         TU ]  SU5        0 nUR                  5        H  u  p4UR                  X#'   M     [         TU ]  SU5        g )N_options_config)super__setattr__itemsdefault_value)selfoptionsconfigkeyoption	__class__s        dC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\geopandas/_config.py__init__Options.__init__   sG    J0"==?KC ..FK + 	Iv.    c                     XR                   ;   ac  U R                  U   nUR                  (       a  UR                  U5        X R                   U'   UR                  (       a  UR                  X5        g g Sn[	        U5      e)Nz.You can only set the value of existing options)r
   r	   	validatorcallbackAttributeError)r   r   valuer   msgs        r   r   Options.__setattr__   sh    ,,]]3'F  ' %LL+  CC %%r   c                 T     U R                   U   $ ! [         a    [        S5      ef = f)NzNo such option)r
   KeyErrorr   )r   r   s     r   __getattr__Options.__getattr__)   s1    	3<<$$ 	3 !122	3s    'c                 H    [        U R                  R                  5       5      $ )N)listr
   keys)r   s    r   __dir__Options.__dir__/   s    DLL%%'((r   c                    U R                   R                  nSnU R                  R                  5        H  u  p4U SU R                  U   < SUR
                  < S3nX%-  nUR                  (       a/  SR                  [        R                  " UR                  SS95      nOSn[        R                  " US	S
9nX&S-   -  nM     SnUR                  SU5      nU SU U S3$ )N z: z [default: z]

F   )widthzNo description available.z    )prefixz
  ())r   __name__r	   r   r
   r   docjointextwrapwrapindentreplace)r   clsdescriptionr   r   descrdoc_textspaces           r   __repr__Options.__repr__2   s    nn%%==..0KC%r$,,s+.k&:N:N9QQTU   Kzz99X]]6::R%HI6x?Hd?*K 1 !))$6aw{m1--r    )r1   
__module____qualname____firstlineno____doc__r   r   r"   r'   r=   __static_attributes____classcell__)r   s   @r   r   r      s$    ?/&3). .r   r   c                 j    U b0  [        U [        5      (       a  SU s=::  a  S::  d  O  [        S5      eg g )Nr   r   z,Invalid value, needs to be an integer [0-16])
isinstanceint
ValueErrorr   s    r   _validate_display_precisionrK   F   s7    %%%a5.>B.>KLL /? r   display_precisionzThe precision (maximum number of decimals) of the coordinates in the WKT representation in the Series/DataFrame display. By default (None), it tries to infer and use 3 decimals for projected coordinates and 5 decimals for geographic coordinates.)r   r   r2   r   r   c                 .    [         R                  " SSS9  g )Nzhpygeos support was removed in 1.0. geopandas.use_pygeos is a no-op and will be removed in geopandas 1.1.   )
stacklevel)warningswarn)_values    r   _warn_use_pygeos_deprecatedrS   Z   s    MM	Pr   c                 6    U b  U S;  a  [        SU  S35      eg g )N)pyogriofionaz$Expected 'pyogrio' or 'fiona', got '')rI   rJ   s    r   _validate_io_enginerX   b   s0    ,,CE7!LMM - r   	io_enginezXThe default engine for ``read_file`` and ``to_file``. Options are 'pyogrio' and 'fiona'.
use_pygeosFzXDeprecated option previously used to enable PyGEOS. It will be removed in GeoPandas 1.1.)rL   rZ   rY   )rC   r4   rP   collectionsr   r   r   rK   rL   rS   rX   rY   rZ   r   r?   r   r   <module>r\      s      "	HH	I3. 3.lM 	A
 * N 	- "		 	/ *	
 . r   