o
    ÕjÊ  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )zCollection of Cell instances.
é   )ÚCellé   )ÚElementCollectionc                   @   s,   e Zd ZdZdefdd„Zdefdd„ZdS )	ÚCellszA group of Cells.Úrawsc                 C   s    |D ]}t |ƒ}|  |¡ q| S )zgRestore Cells from source dict.

        Args:
            raws (list): A list of source dict.
        )r   Úappend)Úselfr   ÚrawÚcell© r   úU/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/pdf2docx/table/Cells.pyÚrestore   s   zCells.restorer
   c                 C   s"   | j  |¡ |  |¡ | j|_dS )zZOverride. Append a cell (allow empty cell, i.e. merged cells) and update bbox accordingly.N)Z
_instancesr   Z_update_bboxZ_parentÚparent)r   r
   r   r   r   r      s   
zCells.appendN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úlistr   r   r   r   r   r   r   r   
   s    r   N)r   r   Zcommon.Collectionr   r   r   r   r   r   Ú<module>   s   