bgtdZddlmZddlmZmZddlmZddlm Z Gddej Z de d d fd 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/PyCQA/pylint/issues/5025 )nodes)checkers interfaces)utils)PyLinterc`eZdZdZddiZejddejddfdZ dS) EqWithoutHasheq-without-hashW1641)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__.nodereturnNct|jd|D}d|vr(d|vr&|d|t jdSdSdS)Nc3$K|] }|jV dSN)name).0xs r/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/extensions/eq_without_hash.py z/EqWithoutHash.visit_classdef..!s$3U3UqAF3U3U3U3U3U3U__eq____hash__r )r confidence)setlocalsunion mymethods add_messagerHIGH)selfr locals_and_methodss rvisit_classdefzEqWithoutHash.visit_classdefs --333U3UDNNDTDT3U3U3UUU ) ) )j@R.R.R   .Tjo  V V V V V * ).R.Rr) __name__ __module__ __qualname__rmsgsronly_required_for_messagesrClassDefr"rrr r sq D   D&U%&788W5>WdWWW98WWWrr linterr NcJ|t|dSr)register_checkerr )r*s rregisterr-&s$ M&1122222r) __doc__astroidrpylintrrpylint.checkersr pylint.lintr BaseCheckerr r-r)rrr4s ''''''''!!!!!! WWWWWH(WWW&3X3$333333r