o
    ‹¨Êh�  ã                   @   s&   ddd„Z ddd„Ze efdd„Zd S )Nc                    ó   ‡ fdd„}dˆ  |_ |S )z¨a default method for missing renderer method

    for example, the support to write data in a specific file type
    is missing but the support to read data exists
    c                    ó   t dˆ  ƒ‚)ú/docstring is assigned a few lines down the lineú%s getter is not defined.©ÚNotImplementedError)Ú_Ú__©Ú	attribute© úH/var/www/html/env/lib/python3.10/site-packages/pyexcel/internal/utils.pyÚnone_presenter   ó   z&default_getter.<locals>.none_presenterr   ©Ú__doc__)r
   r   r   r	   r   Údefault_getter   ó   
r   c                    r   )z¦a default method for missing parser method

    for example, the support to read data in a specific file type
    is missing but the support to write data exists
    c                    r   )r   ú%s setter is not defined.r   )Ú_xÚ_yÚ_zr	   r   r   Únone_importer   r   z%default_setter.<locals>.none_importerr   r   )r
   r   r   r	   r   Údefault_setter   r   r   c                 C   sh   ||ƒ}||ƒ}t |||d�}d|v r| dd¡}n|}t| ||ƒ t| d| |ƒ t| d| |ƒ dS )z1
    create custom attributes for each class
    )ÚfgetÚfsetÚdocÚ.r   zget_%szset_%sN)ÚpropertyÚreplaceÚsetattr)Úclsr
   Ú
doc_stringÚgetter_funcÚsetter_funcÚgetterÚsetterÚattribute_propertyr   r   r   Úmake_a_property   s   
ûr'   )N)r   r   r'   r   r   r   r   Ú<module>   s
   
 
û