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

Provides the necessary API to read and write XML
    )Elementc                   T     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/horilla/myenv/lib/python3.12/site-packages/openpyxl/descriptors/container.pytagnamezElementList.tagname       !!    c                     t         r   r   r
   s    r   expected_typezElementList.expected_type   r   r   c                 l    |D cg c]  }| j                   j                  |       }} | |      S c c}w r   )r   	from_tree)clstreeells       r   r   zElementList.from_tree   s4    7;<S((,<<1v =s   "1c                 |    t        | j                        }| D ]!  }|j                  |j                                # |S r   )r   r   appendto_tree)r   	containerr   s      r   r   zElementList.to_tree   s9    DLL)	 	+BRZZ\*	+r   c                     t        || j                        s%t        d| j                   dt        |       d      t        |   |       y )NzValue must of type  z	 provided)
isinstancer   	TypeErrortypesuperr   )r   value	__class__s     r   r   zElementList.append&   sF    %!3!341$2D2D1EQtE{mS\]^^ur   )__name__
__module____qualname__propertyr   r   classmethodr   r   r   __classcell__)r#   s   @r   r   r      sN     " " " "  
 r   r   N)__doc__openpyxl.xml.functionsr   listr    r   r   <module>r.      s    +$ r   