
    Ki	                     4    S r SSKJr   " S S5      rS rS rg)zUtilities for storing collections of error messages.

.. warning::

    This module is treated as private API.
    Users should not need to use this module directly.
    )SCHEMAc                   (    \ rS rSrS r\S4S jrSrg)
ErrorStore   c                     0 U l         g Nerrors)selfs    Y/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/marshmallow/error_store.py__init__ErrorStore.__init__   s	        Nc                     [        U5      nU[        :w  d  [        U[        5      (       d  X!0nUb  X10n[	        U R
                  U5      U l        g r   )copy_containersr   
isinstancedictmerge_errorsr
   )r   messages
field_nameindexs       r   store_errorErrorStore.store_error   sJ     #8,z(D'A'A"-H(H"4;;9r   r	   )__name__
__module____qualname____firstlineno__r   r   r   __static_attributes__ r   r   r   r      s     06T 	:r   r   c                    [        U [        5      (       a  U  Vs/ s H  n[        U5      PM     sn$ [        U [        5      (       a/  U R	                  5        VVs0 s H  u  p!U[        U5      _M     snn$ U $ s  snf s  snnf r   )r   listr   r   items)r
   valkeys      r   r   r      sj    &$067$77&$:@,,.I.hc_S)).IIM 8Is   A8A=c                     U (       d  U$ U(       d  U $ [        U [        5      (       aw  [        U[        5      (       a  U R                  U5        U $ [        U[        5      (       a'  [	        XR                  [        5      5      U[        '   U$ U R                  U5        U $ [        U [        5      (       as  [        U[        5      (       a6  UR                  5        H   u  p#X ;   a  [	        X   U5      X'   M  X0U'   M"     U $ [	        U R                  [        5      U5      U [        '   U $ [        U[        5      (       a  U /UQ$ [        U[        5      (       a'  [	        XR                  [        5      5      U[        '   U$ X/$ )zDeeply merge two error messages.

The format of ``errors1`` and ``errors2`` matches the ``message``
parameter of :exc:`marshmallow.exceptions.ValidationError`.
)	r   r!   extendr   r   getr   appendr"   )errors1errors2r$   r#   s       r   r   r   %   s3    '4  gt$$NN7#Ngt$$*7KK4GHGFONw'4  gt$$#MMO>#/c#BGL#&CL	 ,
 N&w{{6':GD'4  "'""'4  &wF0CDr   N)__doc__marshmallow.exceptionsr   r   r   r   r   r   r   <module>r-      s#    *: :""r   