File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-311.pyc
Back
� .|oi� � � � d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m Z d dlmZ ddl mZmZmZmZ G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � ZdS )� )�annotations)�Any)�SpecifierSet)�NormalizedName�canonicalize_name)�install_req_drop_extras)�InstallRequirement� )� Candidate�CandidateLookup�Requirement�format_namec �~ � e Zd Zdd�Zdd�Zdd�Zdd �Zdd�Zedd�� � Z edd�� � Z dd�Zdd�Zdd�Z dS )�ExplicitRequirement� candidater �return�Nonec � � || _ d S �N�r ��selfr s ��/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/requirements.py�__init__zExplicitRequirement.__init__ s � �"����� �strc �* � t | j � � S r )r r �r s r �__str__zExplicitRequirement.__str__ s � ��4�>�"�"�"r c �0 � | j j � d| j �d�S �N�(�))� __class__�__name__r r s r �__repr__zExplicitRequirement.__repr__ s � ��.�)�?�?�D�N�?�?�?�?r �intc �* � t | j � � S r )�hashr r s r �__hash__zExplicitRequirement.__hash__ s � ��D�N�#�#�#r �otherr �boolc �P � t |t � � sdS | j |j k S �NF)� isinstancer r �r r+ s r �__eq__zExplicitRequirement.__eq__ s) � ��%�!4�5�5� ��5��~���0�0r r c � � | j j S r )r �project_namer s r r3 z ExplicitRequirement.project_name s � � �~�*�*r c � � | j j S r )r �namer s r r5 zExplicitRequirement.name% s � � �~�"�"r c �4 � | j � � � S r )r �format_for_errorr s r r7 z$ExplicitRequirement.format_for_error* s � ��~�.�.�0�0�0r r c � � | j d fS r r r s r �get_candidate_lookupz(ExplicitRequirement.get_candidate_lookup- s � ��~�t�#�#r c � � || j k S r r r s r �is_satisfied_byz#ExplicitRequirement.is_satisfied_by0 s � ��D�N�*�*r N)r r r r �r r �r r'