관리-도구
편집 파일: eq_without_hash.cpython-311.pyc
� �܋f� � �t � d Z ddlmZ ddlmZmZ ddlmZ ddlm Z G d� dej � � Zde d d fd�Zd S )z�This is the remnant of the python3 checker. It was removed because the transition from python 2 to python3 is behind us, but some checks are still useful in python3 after all. See https://github.com/PyCQA/pylint/issues/5025 � )�nodes)�checkers� interfaces)�utils)�PyLinterc �` � e Zd ZdZddiZ ej d� � dej ddfd�� � Z dS )� EqWithoutHash�eq-without-hash�W1641)z6Implementing __eq__ without also implementing __hash__r z�Used when a class implements __eq__ but not __hash__. Objects get None as their default __hash__ implementation if they also implement __eq__.�node�returnNc �� � t |j � � � d� |� � � D � � � � }d|v r(d|vr&| � d|t j �� � d S d S d S )Nc 3 �$ K � | ]}|j V � �d S �N)�name)�.0�xs �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/eq_without_hash.py� <genexpr>z/EqWithoutHash.visit_classdef.<locals>.<genexpr>! s$ � � � �3U�3U�q�A�F�3U�3U�3U�3U�3U�3U� �__eq__�__hash__r )r � confidence)�set�locals�union� mymethods�add_messager �HIGH)�selfr �locals_and_methodss r �visit_classdefzEqWithoutHash.visit_classdef s� � � ���-�-�3�3�3U�3U�D�N�N�DT�DT�3U�3U�3U�U�U���)�)�)�j�@R�.R�.R����.�T�j�o��V�V�V�V�V� *�)�.R�.Rr ) �__name__� __module__�__qualname__r �msgsr �only_required_for_messagesr �ClassDefr"