+
    WBi                    
   R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt. ROt	R R lt
 ! R R]4      t ! R	 R]4      t]P                  R8  d   ]P                   tM ! R
 R]4      t]P"                   ! R R4      4       tR# )a  
This module defines exceptions and error handling utilities. It is the
recommend path to access ``ConfiguratonError``, ``ConfigurationWarning``, and
``ExceptionGroup``. For backward compatibility, ``ConfigurationError`` is
re-exported in the top-level package.
)annotationsNConfigurationErrorConfigurationWarningExceptionGroupc                   V ^8  d   QhRR/# )   returnz	list[str] )formats   ">/usr/lib/python3.14/site-packages/pyproject_metadata/errors.py__annotate__r      s           c                     \         # )N)__all__r	   r   r   __dir__r      s    Nr   c                  P   a  ] tR t^tRtRR/R V 3R lllt]R R l4       tRtV ;t	# )	r   z
Error in the backend metadata.

Has an optional key attribute, which will be non-None if the error is
related to a single key in the pyproject.toml file.
keyNc               $    V ^8  d   QhRRRRRR/# )r   msgstrr   
str | Noner   Noner	   )r
   s   "r   r   ConfigurationError.__annotate__&   s!      C  t r   c               2   < \         SV `  V4       W n        R# )z.
Create a new error with a key (can be None).
N)super__init___key)selfr   r   	__class__s   &&$r   r   ConfigurationError.__init__&   s     		r   c                   V ^8  d   QhRR/# )r   r   r   r	   )r
   s   "r   r   r   .   s      Z r   c                    V P                   # )z
Return the stored key.
r   r   s   &r   r   ConfigurationError.key-   s    
 yyr   r"   )
__name__
__module____qualname____firstlineno____doc__r   propertyr   __static_attributes____classcell__)r   s   @r   r   r      s-    d    r   c                      ] tR t^5tRtRtR# )r   z Warnings about backend metadata.r	   N)r%   r&   r'   r(   r)   r+   r	   r   r   r   r   5   s    *r   c                  H    ] tR t^=t$ RtR]R&   R]R&   R R ltR R	 ltR
tR# )r   a  A minimal implementation of `ExceptionGroup` from Python 3.11.

Users can replace this with a more complete implementation, such as from
the exceptiongroup backport package, if better error messages and
integration with tooling is desired and the addition of a dependency is
acceptable.
r   messagelist[Exception]
exceptionsc               $    V ^8  d   QhRRRRRR/# )r   r/   r   r1   r0   r   r   r	   )r
   s   "r   r   ExceptionGroup.__annotate__I   s!     	) 	)C 	)_ 	) 	)r   c                    Wn         W n        R# )z=
Create a new group with a message and a list of exceptions.
N)r/   r1   )r   r/   r1   s   &&&r   r   ExceptionGroup.__init__I   s     #L(Or   c                   V ^8  d   QhRR/# )r   r   r   r	   )r
   s   "r   r   r3   P   s     	W 	Wc 	Wr   c                l    V P                   P                   RV P                  : RV P                  : R2# )z5
Return a repr similar to the stdlib ExceptionGroup.
(z, ))r   r%   r/   r1   r#   s   &r   __repr__ExceptionGroup.__repr__P   s3     nn--.a/?r$//ATTUVVr   )r1   r/   N)	r%   r&   r'   r(   r)   __annotations__r   r:   r+   r	   r   r   r   r   =   s%    	 ##	)	W 	Wr   c                      ] tR t^Wt$ RtR]R&   ]P                  ! ]R7      t	R]R&   RRR	RR
RRR/R R llt
R R lt]P                  R R l4       tRtR# )ErrorCollectorzt
Collect errors and raise them as a group at the end (if collect_errors is True),
otherwise raise them immediately.
boolcollect_errors)default_factoryr0   errorsr   Ngotgot_typewarnFc               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# )r   r   r   r   r   rC   objectrD   ztype[typing.Any] | NonerE   r?   kwargsr   r   r	   )r
   s   "r   r   ErrorCollector.__annotate__a   sP     3 33 	3
 3 *3 3 3 
3r   c               P   VP                   ! RRRV R2/VB pVe
   V RV: R2pVe   V RVP                   R2pV'       d    \        P                  ! V\        ^R7       R# V P
                  '       d(   V P                  P                  \        WR7      4       R# \        WR7      h)	z9Raise a configuration error, or add it to the error list.r   "Nz (got r9   )
stacklevel)r   r	   )	r
   r%   warningsrE   r   r@   rB   appendr   )r   r   r   rC   rD   rE   rH   s   &&$$$$,r   config_errorErrorCollector.config_errora   s     jj2qQZ262?Ewa(CE 1 12!4CMM#3B   KK1#?@$S22r   c                    V ^8  d   QhRRRR/# )r   r   r   r   r   r	   )r
   s   "r   r   rI   y   s     3 3C 3D 3r   c                T    V P                   '       d   \        WP                   4      hR# )z0Raise a group exception if there are any errors.N)rB   r   )r   r   s   &&r   finalizeErrorCollector.finalizey   s    ;;; kk22 r   c                   V ^8  d   QhRR/# )r   r   z"typing.Generator[None, None, None]r	   )r
   s   "r   r   rI      s      ; r   c              #     "   V P                   '       d    Rx  R# Rx  R#   \         d1   pT P                  P                  TP                  4        Rp?R# Rp?ii ; i5i)z:Support nesting; add any grouped errors to the error list.N)r@   r   rB   extendr1   )r   errors   & r   collectErrorCollector.collect~   sL      5  " 5""5#3#3445s*   A " A A%AA AA r	   )r%   r&   r'   r(   r)   r<   dataclassesfieldlistrB   rO   rS   
contextlibcontextmanagerrY   r+   r	   r   r   r>   r>   W   sp    
 )//EFOE3 	3
 3 -13 303
  r   r>   )r   r   r   )      )r)   
__future__r   builtinsr^   r[   systypingrM   r   r   	Exceptionr   UserWarningr   version_infor   	dataclassr>   r	   r   r   <module>rj      s    #    
   .+; + w,,NW W4 / / /r   