Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/extensions/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/extensions/__pycache__/dunder.cpython-311.pyc

�

�܋fR	���ddlmZddlmZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
erddlmZGd�d	e��Zdd�ZdS)�)�annotations)�
TYPE_CHECKING)�nodes)�BaseChecker)�DUNDER_METHODS�DUNDER_PROPERTIES�EXTRA_DUNDER_METHODS)�HIGH)�PyLinterc�F�eZdZdZdZdZddiZdgddd	d
�ffZdd
�Zdd�Z	dS)�
DunderCheckerz!Checks related to dunder methods.�dunder����W3201)z(Bad or misspelled dunder method name %s.�bad-dunder-nameznUsed when a dunder method is misspelled or defined with a name not within the predefined list of dunder names.zgood-dunder-names�csvz<comma-separated names>z2Good dunder names which should always be accepted.)�default�type�metavar�help�return�Nonec� �ttz|jjjz|_t
j��D]S\}}||jjjkr9|j�	t|��������TdS�N)r	r�linter�config�good_dunder_names�_dunder_methodsr�items�
py_version�extend�list�keys)�self�
since_vers�dunder_methodss   �i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/dunder.py�openzDunderChecker.open,s��� ��
 ��k� �2�
3�	
��
+9�*>�*@�*@�	I�	I�&�J���T�[�/�:�:�:��$�+�+�D��1D�1D�1F�1F�,G�,G�H�H�H��	I�	I��node�nodes.FunctionDefc��|���sdS|j�d��rM|j�d��r5|j|jvr)|�d||jt���dSdSdSdS)zoCheck if known dunder method is misspelled or dunder name is not one
        of the pre-defined names.
        N�_r)r*�args�
confidence)�	is_method�name�
startswith�endswithr�add_messager
)r$r*s  r'�visit_functiondefzDunderChecker.visit_functiondef6s���
�~�~���	��F�
�I� � ��%�%�
	��	�"�"�3�'�'�
	��	��!5�5�5����!���i��	
�
�
�
�
�
�
	�
	�
	�
	�6�5r)N)rr)r*r+rr)
�__name__�
__module__�__qualname__�__doc__r1�priority�msgs�optionsr(r5�r)r'r
r
s�������+�+��D��H��
��D�
 ���4�L�	
�
�	
�
�G�I�I�I�I������r)r
rrrrc�J�|�t|����dSr)�register_checkerr
)rs r'�registerr@Ls$��
���M�&�1�1�2�2�2�2�2r)N)rrrr)�
__future__r�typingr�astroidr�pylint.checkersr�pylint.constantsrrr	�pylint.interfacesr
�pylint.lintrr
r@r=r)r'�<module>rHs���
#�"�"�"�"�"� � � � � � �������'�'�'�'�'�'�T�T�T�T�T�T�T�T�T�T�"�"�"�"�"�"��%�$�$�$�$�$�$�6�6�6�6�6�K�6�6�6�r3�3�3�3�3�3r)

Hacked By AnonymousFox1.0, Coded By AnonymousFox