Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/extensions/__pycache__/eq_without_hash.cpython-39.pyc
Ðазад
a n�h� � @ s^ d Z ddlmZ ddlmZmZ ddlmZ ddlm Z G dd� dej �Ze dd �d d�ZdS )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/pylint-dev/pylint/issues/5025 � )�nodes)�checkers� interfaces)�utils)�PyLinterc @ s4 e Zd ZdZddiZe�d�ejdd�dd��Z dS )� EqWithoutHash�eq-without-hashZW1641)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__.N)�node�returnc C sD t |j��dd� |�� D ��}d|v r@d|vr@| jd|tjd� d S )Nc s s | ]}|j V qd S �N)�name)�.0�x� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/extensions/eq_without_hash.py� <genexpr>! � z/EqWithoutHash.visit_classdef.<locals>.<genexpr>�__eq__�__hash__r )r Z confidence)�set�locals�unionZ mymethodsZadd_messager ZHIGH)�selfr Zlocals_and_methodsr r r �visit_classdef s zEqWithoutHash.visit_classdef) �__name__� __module__�__qualname__r Zmsgsr Zonly_required_for_messagesr �ClassDefr r r r r r s � r N)�linterr c C s | � t| �� d S r )Zregister_checkerr )r r r r �register&