OwlCyberSecurity - MANAGER
Edit File: requirements.cpython-312.pyc
� "��g� � �� � d dl mZmZ d dlmZ d dlmZmZ d dlm Z d dl mZ ddlm Z mZmZmZ G d� d e� Z G d � de� Z G d� d e� Z G d� de� Z G d� de� Zy)� )�Any�Optional)�SpecifierSet)�NormalizedName�canonicalize_name)�install_req_drop_extras)�InstallRequirement� )� Candidate�CandidateLookup�Requirement�format_namec � � e Zd Zdeddfd�Zdefd�Zdefd�Zdefd�Z de defd �Ze defd �� Ze defd�� Zdefd�Zdefd �Zdedefd�Zy)�ExplicitRequirement� candidate�returnNc � � || _ y �N�r ��selfr s �_/opt/hc_python/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.py�__init__zExplicitRequirement.__init__ s � �"��� c �, � t | j � S r )�strr �r s r �__str__zExplicitRequirement.__str__ s � ��4�>�>�"�"r c �N � | j j � d| j �d�S �N�(�))� __class__�__name__r r s r �__repr__zExplicitRequirement.__repr__ s% � ��.�.�)�)�*�!�D�N�N�+=�Q�?�?r c �, � t | j � S r )�hashr r s r �__hash__zExplicitRequirement.__hash__ s � ��D�N�N�#�#r �otherc �V � t |t � sy| j |j k( S �NF)� isinstancer r �r r) s r �__eq__zExplicitRequirement.__eq__ s# � ��%�!4�5���~�~����0�0r c �. � | j j S r )r �project_namer s r r0 z ExplicitRequirement.project_name s � � �~�~�*�*�*r c �. � | j j S r )r �namer s r r2 zExplicitRequirement.name# s � � �~�~�"�"�"r c �6 � | j j � S r )r �format_for_errorr s r r4 z$ExplicitRequirement.format_for_error( s � ��~�~�.�.�0�0r 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_by. s � ��D�N�N�*�*r )r$ � __module__�__qualname__r r r r r% �intr( r �boolr. �propertyr r0 r2 r4 r r6 r8 � r r r r s� � �#�)� #�� #�#�� #�@�#� @�$�#� $�1�C� 1�D� 1� �+�n� +� �+� �#�c� #� �#�1�#� 1�$�o� $�+�� +�t� +r r c � � e Zd Zdeddfd�Zedefd�� Zdefd�Zdefd�Z de defd �Zde fd �Zedefd�� Zedefd�� Zdefd �Zdefd�Zdedefd�Zy)�SpecifierRequirement�ireqr Nc � � |j �J d� �|| _ d | _ d | _ t d� | j j D � � | _ y )N�This is a link, not a specifierc 3 �2 K � | ] }t |� �� � y �wr �r ��.0�es r � <genexpr>z0SpecifierRequirement.__init__.<locals>.<genexpr>8 � � �� � Q�?P�!�!2�1�!5�?P�� �)�link�_ireq�_equal_cache�_hash� frozenset�extras�_extras�r rA s r r zSpecifierRequirement.__init__3 sJ � ��y�y� �C�"C�C� ��� �+/���$(�� � � Q�t�z�z�?P�?P� Q�Q��r c �~ � | j �| j S t | j � | _ | j S r �rN r rM r s r �_equalzSpecifierRequirement._equal: �6 � ����(��$�$�$��� � �O���� � � r c �@ � t | j j � S r )r rM �reqr s r r zSpecifierRequirement.__str__B s � ��4�:�:�>�>�"�"r c �t � | j j � dt | j j � �d�S r )r# r$ r rM rY r s r r% zSpecifierRequirement.__repr__E s. � ��.�.�)�)�*�!�C�� � ���,?�+B�!�D�Dr r) c �` � t |t � st S | j |j k( S r )r, r@ �NotImplementedrV r- s r r. zSpecifierRequirement.__eq__H s&