§
    k•jx
  ã                  ó´   — d dl mZ d dlZd dlZd dlZd dlZdgZdd„Zej        dk    rd dl	m
Z
 n G d	„ de¦  «        Z
ej         G d
„ d¦  «        ¦   «         ZdS )é    )ÚannotationsNÚExceptionGroupÚreturnú	list[str]c                 ó   — t           S ©N)Ú__all__© ó    ú_/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/packaging/errors.pyÚ__dir__r      s   € Ý€Nr   )é   é   )r   c                  ó8   — e Zd ZU dZded<   ded<   dd„Zdd	„Zd
S )r   zËA minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11.

        If :external:exc:`ExceptionGroup` is already defined by Python itself,
        that version is used instead.
        ÚstrÚmessageúlist[Exception]Ú
exceptionsr   ÚNonec                ó"   — || _         || _        d S r   )r   r   )Úselfr   r   s      r   Ú__init__zExceptionGroup.__init__   s   € Ø"ˆDŒLØ(ˆDŒOˆOˆOr   c                ó@   — | j         j        › d| j        ›d| j        ›d�S )Nú(z, ú))Ú	__class__Ú__name__r   r   )r   s    r   Ú__repr__zExceptionGroup.__repr__!   s*   € Ø”nÔ-ÐVÐV°´ÐVÐVÀ$Ä/ÐVÐVÐVÐVr   N)r   r   r   r   r   r   )r   r   )r   Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r   r
   r   r   r   r      se   € € € € € € ð	ð 	ð 	ˆˆ‰Ø#Ð#Ð#Ñ#ð	)ð 	)ð 	)ð 	)ð	Wð 	Wð 	Wð 	Wð 	Wð 	Wr   c                  ó–   — e Zd ZU dZ ej        ed¬¦  «        Zded<   dd
„Z	e
j        dd„¦   «         Ze
j        dd„¦   «         Zdd„ZdS )Ú_ErrorCollectoraò  
    Collect errors into ExceptionGroups.

    Used like this:

        collector = _ErrorCollector()
        # Add a single exception
        collector.error(ValueError("one"))

        # Supports nesting, including combining ExceptionGroups
        with collector.collect():
            raise ValueError("two")
        collector.finalize("Found some errors")

    Since making a collector and then calling finalize later is a common pattern,
    a convenience method ``on_exit`` is provided.
    F)Údefault_factoryÚinitr   ÚerrorsÚmsgr   r   r   c                ó>   — | j         rt          || j         ¦  «        ‚dS )z0Raise a group exception if there are any errors.N)r'   r   ©r   r(   s     r   Úfinalizez_ErrorCollector.finalize;   s(   € àŒ;ð 	3Ý   d¤kÑ2Ô2Ð2ð	3ð 	3r   ú-typing.Generator[_ErrorCollector, None, None]c              #  ó<   K  — | V — |                       |¦  «         dS )zx
        Calls finalize if no uncollected errors were present.

        Uncollected errors are raised normally.
        N)r+   r*   s     r   Úon_exitz_ErrorCollector.on_exit@   s)   è è € ð ˆ
ˆ
ˆ
Ø�Š�cÑÔÐÐÐr   Úerr_clsútype[Exception]ú"typing.Generator[None, None, None]c              '  óæ   K  — |pt           f}	 dV — dS # t          $ r*}| j                             |j        ¦  «         Y d}~dS d}~w|$ r%}| j                             |¦  «         Y d}~dS d}~ww xY w)z•
        Context manager to collect errors into the error list.

        Must be inside loops, as only one error can be collected at a time.
        N)Ú	Exceptionr   r'   Úextendr   Úappend)r   r/   Úerror_classesÚerrors       r   Úcollectz_ErrorCollector.collectJ   s®   è è € ð  Ð/¥I <ˆð	&ØˆEˆEˆEˆEˆEøÝð 	1ð 	1ð 	1ØŒK×Ò˜uÔ/Ñ0Ô0Ð0Ð0Ð0Ð0Ð0Ð0Ð0øøøøØð 	&ð 	&ð 	&ØŒK×Ò˜uÑ%Ô%Ð%Ð%Ð%Ð%Ð%Ð%Ð%øøøøð	&øøøs    Ž ”
A0žAÁA0ÁA+Á+A0r7   r3   c                ó:   — | j                              |¦  «         dS )zAdd an error to the list.N)r'   r5   )r   r7   s     r   r7   z_ErrorCollector.errorY   s    € ð
 	Œ×Ò˜5Ñ!Ô!Ð!Ð!Ð!r   N)r(   r   r   r   )r(   r   r   r,   )r/   r0   r   r1   )r7   r3   r   r   )r   r   r    r!   ÚdataclassesÚfieldÚlistr'   r"   r+   Ú
contextlibÚcontextmanagerr.   r8   r7   r
   r   r   r$   r$   %   sµ   € € € € € € ðð ð$ 0˜kÔ/ÀÈ5ÐQÑQÔQ€FÐQÐQÐQÑQð3ð 3ð 3ð 3ð
 Ôðð ð ñ Ôðð Ôð&ð &ð &ñ Ôð&ð"ð "ð "ð "ð "ð "r   r$   )r   r   )Ú
__future__r   r=   r:   ÚsysÚtypingr	   r   Úversion_infoÚbuiltinsr   r3   Ú	dataclassr$   r
   r   r   ú<module>rE      sö   ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ø Ð Ð Ð Ø 
€
€
€
Ø €€€àÐ
€ðð ð ð ð Ô�wÒÐØ'Ð'Ð'Ð'Ð'Ð'Ð'ðWð Wð Wð Wð W˜ñ Wô Wð Wð$ Ôð8"ð 8"ð 8"ð 8"ð 8"ñ 8"ô 8"ñ Ôð8"ð 8"ð 8"r   