
    yIf                     t    d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	  G d dej
                  Zde	d	d
fdZd
S )zThis 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                   `    e Zd ZdZddiZ ej        d          dej        ddfd            Z	dS )EqWithoutHasheq-without-hashW1641)z6Implementing __eq__ without also implementing __hash__r
   zUsed 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|vr&|                     d|t
          j                   d S d S d S )Nc              3   $   K   | ]}|j         V  d S N)name).0xs     U/var/www/piapp/venv/lib/python3.11/site-packages/pylint/extensions/eq_without_hash.py	<genexpr>z/EqWithoutHash.visit_classdef.<locals>.<genexpr>!   s$      3U3UqAF3U3U3U3U3U3U    __eq____hash__r
   )r   
confidence)setlocalsunion	mymethodsadd_messager   HIGH)selfr   locals_and_methodss      r   visit_classdefzEqWithoutHash.visit_classdef   s     --333U3UDNNDTDT3U3U3UUU)))j@R.R.R.TjoVVVVV *).R.Rr   )
__name__
__module____qualname__r   msgsr   only_required_for_messagesr   ClassDefr"    r   r   r	   r	      sq        D 	 
D &U%&788W5> Wd W W W 98W W Wr   r	   linterr   Nc                 J    |                      t          |                      d S r   )register_checkerr	   )r*   s    r   registerr-   &   s$    
M&1122222r   )__doc__astroidr   pylintr   r   pylint.checkersr   pylint.lintr   BaseCheckerr	   r-   r)   r   r   <module>r4      s   
        ' ' ' ' ' ' ' ' ! ! ! ! ! !            W W W W WH( W W W&3X 3$ 3 3 3 3 3 3r   