o
    VÌh°  ã                   @  sœ   d dl mZ d dlmZ erd dlmZ G dd„ deƒZG dd„ deƒZG dd	„ d	eƒZ	G d
d„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZdS )é    )Úannotations)ÚTYPE_CHECKING)ÚIncompatibilityc                   @  s   e Zd ZdZdS )ÚIncompatibilityCauseErrorzB
    The reason and Incompatibility's terms are incompatible.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r
   r
   úy/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/mixology/incompatibility_cause.pyr   
   s    r   c                   @  ó   e Zd ZdS )ÚRootCauseErrorN©r   r   r   r
   r
   r
   r   r      ó    r   c                   @  r   )ÚNoVersionsCauseErrorNr   r
   r
   r
   r   r      r   r   c                   @  r   )ÚDependencyCauseErrorNr   r
   r
   r
   r   r      r   r   c                   @  s@   e Zd ZdZddd„Zedd	d
„ƒZeddd„ƒZddd„ZdS )ÚConflictCauseErrorzm
    The incompatibility was derived from two existing incompatibilities
    during conflict resolution.
    Úconflictr   ÚotherÚreturnÚNonec                 C  ó   || _ || _d S ©N)Ú	_conflictÚ_other)Úselfr   r   r
   r
   r   Ú__init__"   ó   
zConflictCauseError.__init__c                 C  ó   | j S r   )r   ©r   r
   r
   r   r   &   ó   zConflictCauseError.conflictc                 C  r   r   )r   r   r
   r
   r   r   *   r    zConflictCauseError.otherÚstrc                 C  s
   t | jƒS r   )r!   r   r   r
   r
   r   Ú__str__.   ó   
zConflictCauseError.__str__N)r   r   r   r   r   r   )r   r   ©r   r!   )	r   r   r   r	   r   Úpropertyr   r   r"   r
   r
   r
   r   r      s    
r   c                   @  s6   e Zd ZdZddd„Zedd	d
„ƒZeddd„ƒZdS )ÚPythonCauseErrorz”
    The incompatibility represents a package's python constraint
    (Python versions) being incompatible
    with the current python version.
    Úpython_versionr!   Úroot_python_versionr   r   c                 C  r   r   )Ú_python_versionÚ_root_python_version)r   r'   r(   r
   r
   r   r   9   r   zPythonCauseError.__init__c                 C  r   r   )r)   r   r
   r
   r   r'   =   r    zPythonCauseError.python_versionc                 C  r   r   )r*   r   r
   r
   r   r(   A   r    z$PythonCauseError.root_python_versionN)r'   r!   r(   r!   r   r   r$   )r   r   r   r	   r   r%   r'   r(   r
   r
   r
   r   r&   2   s    
r&   c                   @  s(   e Zd ZdZddd„Zeddd	„ƒZd
S )ÚPlatformCauseErrorz‹
    The incompatibility represents a package's platform constraint
    (OS most likely) being incompatible with the current platform.
    Úplatformr!   r   r   c                 C  s
   || _ d S r   ©Ú	_platform)r   r,   r
   r
   r   r   L   r#   zPlatformCauseError.__init__c                 C  r   r   r-   r   r
   r
   r   r,   O   r    zPlatformCauseError.platformN)r,   r!   r   r   r$   )r   r   r   r	   r   r%   r,   r
   r
   r
   r   r+   F   s
    
r+   N)Ú
__future__r   Útypingr   Úpoetry.mixology.incompatibilityr   Ú	Exceptionr   r   r   r   r   r&   r+   r
   r
   r
   r   Ú<module>   s    