
    rbi                     4    d dl mZ d dlmZ deez  defdZdS )    Callable)dedent
docstringsreturnc                  4     dt           dt           f fd}|S )a  Append docstrings to a callable.

    A decorator take docstring templates, concatenate them and perform string
    substitution on it.
    This decorator will add a variable "_docstring_components" to the wrapped
    callable to keep track the original docstring template for potential usage.
    If it should be consider as a template, it will be saved as a string.
    Otherwise, it will be saved as callable, and later user __doc__ and dedent
    to get docstring.

    Parameters
    ----------
    *docstrings : str or callable
        The string / docstring / docstring template to be appended in order
        after default docstring under callable.
    **params
        The string which would be used to format docstring template.
    	decoratedr   c                    g }| j         r'|                    t          | j                              D ]^}t          |d          r|                    |j                   -t          |t                    s|j         r|                    |           _d                    fd|D                       | _         || _        | S )N_docstring_components c              3      K   | ]<}t          |t                    r |j        di nt          |j        pd           V  =dS )r   N )
isinstancestrformatr   __doc__).0	componentparamss     d/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/geopandas/_decorator.py	<genexpr>z)doc.<locals>.decorator.<locals>.<genexpr>)   st       $
 $
  i--5 	 **6***I-344	$
 $
 $
 $
 $
 $
    )	r   appendr   hasattrextendr   r   r   join)r	   docstring_components	docstringr   r   s      r   	decoratorzdoc.<locals>.decorator   s    57 	C ''y/@(A(ABBB# 	7 	7Iy"9:: 7$++I,KLLLLIs++ 7y/@ 7$++I666 GG $
 $
 $
 $
 2$
 $
 $
 
 
	 +?	'r   r   )r   r   r   s   `` r   docr       s=    (X (       2 r   N)collections.abcr   textwrapr   r   r    r   r   r   <module>r#      sY    $ $ $ $ $ $      -S8^ -( - - - - - -r   