관리-도구
편집 파일: models.cpython-312.pyc
� G��e� � �8 � d Z ddlZddlmZmZmZ G d� d� Zy)zUtilities for defining models � N)�Any�Callable�Typec � � e Zd ZdZddgZdeded ddfd�Zdefd �Z d ede fd�Zd ede fd�Zd ede fd �Z d ede fd�Zd ede fd�Zd edeeege f de fd�Zy)�KeyBasedCompareMixinz7Provides comparison capabilities that is based on a key�_compare_key�_defining_class�key�defining_class�returnNc � � || _ || _ y �N)r r )�selfr r s ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/utils/models.py�__init__zKeyBasedCompareMixin.__init__ s � ����-��� c �, � t | j � S r )�hashr )r s r �__hash__zKeyBasedCompareMixin.__hash__ s � ��D�%�%�&�&r �otherc �B � | j |t j � S r )�_compare�operator�__lt__�r r s r r zKeyBasedCompareMixin.__lt__ � � ��}�}�U�H�O�O�4�4r c �B � | j |t j � S r )r r �__le__r s r r zKeyBasedCompareMixin.__le__ r r c �B � | j |t j � S r )r r �__gt__r s r r zKeyBasedCompareMixin.__gt__ r r c �B � | j |t j � S r )r r �__ge__r s r r"