o
    6‘ðiè  ã                   @  sÆ   d dl mZ d dlmZmZmZ ddlmZmZm	Z	 er"ddl
mZ G dd„ deƒZG d	d
„ d
eeeef ƒZG dd„ deeeef ƒZG dd„ deƒZG dd„ deeeef ƒZG dd„ deƒZdS )é    )Úannotations)ÚTYPE_CHECKINGÚ
CollectionÚGenericé   )ÚCTÚRTÚRequirementInformationé   )Ú	Criterionc                   @  s   e Zd ZdZdS )ÚResolverExceptionzÆA base class for all exceptions raised by this module.

    Exceptions derived by this class should all be handled in this module. Any
    bubbling pass the resolver should be treated as a bug.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   új/root/parts/websockify/install/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.pyr      s    r   c                      s(   e Zd Zd
‡ fdd„Zddd	„Z‡  ZS )ÚRequirementsConflictedÚ	criterionúCriterion[RT, CT]ÚreturnÚNonec                   ó   t ƒ  |¡ || _d S ©N)ÚsuperÚ__init__r   )Úselfr   ©Ú	__class__r   r   r      ó   
zRequirementsConflicted.__init__Ústrc                 C  s    d  d dd„ | j ¡ D ƒ¡¡S )NzRequirements conflict: {}ú, c                 s  ó   � | ]}t |ƒV  qd S r   ©Úrepr©Ú.0Úrr   r   r   Ú	<genexpr>   ó   € z1RequirementsConflicted.__str__.<locals>.<genexpr>)ÚformatÚjoinr   Úiter_requirement©r   r   r   r   Ú__str__   s   ÿzRequirementsConflicted.__str__)r   r   r   r   ©r   r    ©r   r   r   r   r.   Ú__classcell__r   r   r   r   r      s    r   c                      s(   e Zd Zd‡ fdd„Zdd	d
„Z‡  ZS )ÚInconsistentCandidateÚ	candidater   r   r   c                   s   t ƒ  ||¡ || _|| _d S r   )r   r   r3   r   )r   r3   r   r   r   r   r      s   
zInconsistentCandidate.__init__r   r    c                 C  s$   d  | jd dd„ | j ¡ D ƒ¡¡S )Nz+Provided candidate {!r} does not satisfy {}r!   c                 s  r"   r   r#   r%   r   r   r   r(   '   r)   z0InconsistentCandidate.__str__.<locals>.<genexpr>)r*   r3   r+   r   r,   r-   r   r   r   r.   $   s   þzInconsistentCandidate.__str__)r3   r   r   r   r/   r0   r   r   r   r   r2      s    r2   c                   @  s   e Zd ZdS )ÚResolutionErrorN)r   r   r   r   r   r   r   r4   +   s    r4   c                      s   e Zd Zd‡ fdd„Z‡  ZS )ÚResolutionImpossibleÚcausesú*Collection[RequirementInformation[RT, CT]]c                   r   r   )r   r   r6   )r   r6   r   r   r   r   0   s   
zResolutionImpossible.__init__)r6   r7   ©r   r   r   r   r1   r   r   r   r   r5   /   ó    r5   c                      s   e Zd Zd‡ fdd„Z‡  ZS )ÚResolutionTooDeepÚround_countÚintr   r   c                   r   r   )r   r   r;   )r   r;   r   r   r   r   7   r   zResolutionTooDeep.__init__)r;   r<   r   r   r8   r   r   r   r   r:   6   r9   r:   N)Ú
__future__r   Útypingr   r   r   Ústructsr   r   r	   r   r   Ú	Exceptionr   r   r2   r4   r5   r:   r   r   r   r   Ú<module>   s    