
    fhy                     2    d Z ddlmZ  G d de          ZdS )zz
Utility list for top level containers that contain one type of element

Provides the necessary API to read and write XML
    )Elementc                   f     e Zd Zed             Zed             Zed             Zd Z fdZ	 xZ
S )ElementListc                     t           NNotImplementedErrorselfs    U/var/www/histauto/venv/lib/python3.11/site-packages/openpyxl/descriptors/container.pytagnamezElementList.tagname       !!    c                     t           r   r   r
   s    r   expected_typezElementList.expected_type   r   r   c                 6      fd|D             }  |          S )Nc                 D    g | ]}j                             |          S  )r   	from_tree).0elclss     r   
<listcomp>z)ElementList.from_tree.<locals>.<listcomp>   s*    <<<S((,,<<<r   r   )r   treels   `  r   r   zElementList.from_tree   s)    <<<<t<<<s1vvr   c                     t          | j                  }| D ])}|                    |                                           *|S r   )r   r   appendto_tree)r   	containerr   s      r   r   zElementList.to_tree   sE    DL))	 	+ 	+BRZZ\\****r   c                     t          || j                  s(t          d| j         dt          |           d          t	                                          |           d S )NzValue must of type  z	 provided)
isinstancer   	TypeErrortypesuperr   )r   value	__class__s     r   r   zElementList.append&   s`    %!344 	_]$2D]]tE{{]]]^^^ur   )__name__
__module____qualname__propertyr   r   classmethodr   r   r   __classcell__)r'   s   @r   r   r      s         " " X" " " X"   [
          r   r   N)__doc__openpyxl.xml.functionsr   listr   r   r   r   <module>r1      sW     + * * * * *    $     r   