o
    Vh^                     @  sP   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d
S )    )annotationsc                   @  s   e Zd ZdS )PythonVersionErrorN)__name__
__module____qualname__ r   r   v/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/utils/env/python/exceptions.pyr      s    r   c                      s   e Zd Zd fddZ  ZS )PythonVersionNotFoundErrorexpectedstrreturnNonec                   s   t  d|  d S )Nz%Could not find the python executable super__init__)selfr
   	__class__r   r   r   	   s   z#PythonVersionNotFoundError.__init__)r
   r   r   r   r   r   r   r   __classcell__r   r   r   r   r	          r	   c                      s    e Zd Zd
d fdd	Z  ZS )#NoCompatiblePythonVersionFoundErrorNr
   r   given
str | Noner   r   c                   s,   |rd| d| d}nd}t  | d S )NzThe specified Python version (z#) is not supported by the project (zk).
Please choose a compatible version or loosen the python constraint specified in the pyproject.toml file.zuPoetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.r   r   r
   r   messager   r   r   r      s   	z,NoCompatiblePythonVersionFoundError.__init__)N)r
   r   r   r   r   r   r   r   r   r   r   r      s    r   c                      s   e Zd Zd fddZ  ZS )	 InvalidCurrentPythonVersionErrorr
   r   r   r   r   c                   s"   d| d| d}t  | d S )NzCurrent Python version (z!) is not allowed by the project (z=).
Please change python executable via the "env use" command.r   r   r   r   r   r   "   s
   z)InvalidCurrentPythonVersionError.__init__)r
   r   r   r   r   r   r   r   r   r   r   r   !   r   r   N)
__future__r   	Exceptionr   r	   r   r   r   r   r   r   <module>   s
    