3
ÀÞL]‘  ã               @   s`   d dl mZ d dlmZ d dlmZ erLd dl mZ d dlm	Z	 d dl
mZ G dd„ deƒZd	S )
é    )Úparse)ÚKeyBasedCompareMixin)ÚMYPY_CHECK_RUNNING)Ú_BaseVersion)ÚLink)ÚAnyc                   s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚInstallationCandidatez9Represents a potential "candidate" for installation.
    c                s:   || _ t|ƒ| _|| _tt| ƒj| j | j| jftd� d S )N)ÚkeyÚdefining_class)ÚprojectÚparse_versionÚversionÚlinkÚsuperr   Ú__init__)Úselfr   r   r   )Ú	__class__© ú=/tmp/pip-build-69lrc5qx/pip/pip/_internal/models/candidate.pyr      s    

zInstallationCandidate.__init__c             C   s   dj | j| j| jƒS )Nz)<InstallationCandidate({!r}, {!r}, {!r})>)Úformatr   r   r   )r   r   r   r   Ú__repr__   s    zInstallationCandidate.__repr__c             C   s   dj | j| j| jƒS )Nz!{!r} candidate (version {} at {}))r   r   r   r   )r   r   r   r   Ú__str__!   s    zInstallationCandidate.__str__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Ú__classcell__r   r   )r   r   r      s   r   N)Zpip._vendor.packaging.versionr   r   Zpip._internal.utils.modelsr   Zpip._internal.utils.typingr   r   Zpip._internal.models.linkr   Útypingr   r   r   r   r   r   Ú<module>   s   