Hacked By AnonymousFox

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

�

�܋f}���dZddlmZddlmZmZddlmZmZm	Z	ddl
mZe	d��Ze	dd�	��Z
eeeegd
fZGd�d��ZGd�d
e��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��Zd
S)zPMicro reports objects.

A micro report is a tree of layout and content objects.
�)�annotations)�Iterable�Iterator)�Any�Callable�TypeVar)�
BaseWriter�_T�_VNodeT�VNode)�boundNc�.�eZdZdd�Zdd�Zdd
�Zdd�ZdS)r�return�Nonec�h�d|_g|_|jj���|_dS�N)�parent�children�	__class__�__name__�lower�visitor_name��selfs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/reporters/ureports/nodes.py�__init__zVNode.__init__s/��)-���%'��
�!%��!8�!>�!>�!@�!@������Iterator[VNode]c�*�t|j��Sr)�iterrrs r�__iter__zVNode.__iter__s���D�M�"�"�"rrr�visitorr	�argsr�kwargsc�J�t|d|j����}||g|�Ri|��S)N�visit_��getattrr�rr"r#r$�funcs     r�acceptzVNode.accept�D��,3��1�d�/�1�1�-
�-
���t�D�*�4�*�*�*�6�*�*�*rc�J�t|d|j����}||g|�Ri|��S)N�leave_r'r)s     r�leavezVNode.leave%r,rN)rr)rr)
rrr"r	r#rr$rrr)r�
__module__�__qualname__rr!r+r/�rrrrsh������A�A�A�A�
#�#�#�#�+�+�+�+�+�+�+�+�+�+rc�F��eZdZdZdd�fd�
Zdd
�Zdd
�Zdd�Zdd�Z�xZ	S)�
BaseLayoutzlBase container node.

    attributes
    * children : components in this table (i.e. the table's cells)
    r2r�Iterable[Text | str]rrc����t�����|D]B}t|t��r|�|���-|�|���CdSr)�superr�
isinstancer�append�add_text)rr�childrs   �rrzBaseLayout.__init__3sn���
���������	%�	%�E��%��'�'�
%����E�"�"�"�"��
�
�e�$�$�$�$�		%�	%rr;rc�x�||���vsJ�|j�|��||_dS)zAdd a node to children.N)�parentsrr9r)rr;s  rr9zBaseLayout.append;s<���D�L�L�N�N�*�*�*�*��
���U�#�#�#�����r�index�intc�J�|j�||��||_dS)zInsert a child node.N)r�insertr)rr>r;s   rrAzBaseLayout.insertAs%���
���U�E�*�*�*�����r�list[BaseLayout]c�n�|j|usJ�|j�gS|jg|j���zS)zReturn the ancestor nodes.)rr=rs rr=zBaseLayout.parentsFs?���{�$�&�&�&�&��;���I���}�t�{�2�2�4�4�4�4r�text�strc�T�|j�t|����dS)zShortcut to add text data.N)rr9�Text)rrDs  rr:zBaseLayout.add_textMs$���
���T�$�Z�Z�(�(�(�(�(r�r2)rr5rr)r;rrr)r>r?r;rrr)rrB)rDrErr)
rr0r1�__doc__rr9rAr=r:�
__classcell__�rs@rr4r4,s����������%�%�%�%�%�%�%���������
5�5�5�5�)�)�)�)�)�)�)�)rr4c�&��eZdZdZd
d�fd	�
Z�xZS)rGzbA text portion.

    attributes :
    * data : the text value as an encoded or unicode string
    T�datarE�escaped�boolrrc�d��t�����||_||_dSr)r7rrNrM)rrMrNrs   �rrz
Text.__init__\s+���
�������������	�	�	r)T)rMrErNrOrr�rr0r1rIrrJrKs@rrGrGUsL�������������������rrGc��eZdZdZdS)�VerbatimTextzyA verbatim text, display the raw data.

    attributes :
    * data : the text value as an encoded or unicode string
    N�rr0r1rIr2rrrSrSbs���������rrSc�,��eZdZdZ			dd
�fd�
Z�xZS)�Sectionz�A section.

    attributes :
    * BaseLayout attributes

    a title may also be given to the constructor, it'll be added
    as a first element
    a description may also be given to the constructor, it'll be added
    as a first paragraph
    Nr2�title�
str | None�descriptionrr5rrc���t���|���|r1|�dtt	|��g����|r%|�dt|f�����d|_dS)N�rr�)r7rrA�	ParagraphrG�Title�	report_id)rrWrYrrs    �rrzSection.__init__ys����	�����(��+�+�+��	;��K�K��9�d�;�&7�&7�%8�9�9�:�:�:��	5��K�K��5�5�(�3�3�3�4�4�4� ����r)NNr2)rWrXrYrXrr5rrrQrKs@rrVrVmsW�������	�	�!�"&�)+�	!�!�!�!�!�!�!�!�!�!�!rrVc�"��eZdZd	d
�fd�
Z�xZS)�EvaluationSectionr2�messagerErr5rrc���t���|���t��}|�t	dt|��z����|�|��t��}|�t	|����|�|��dS)Nr[�-)r7rr]r9rG�len)rrbrrW�message_bodyrs     �rrzEvaluationSection.__init__�s����
�����(��+�+�+�����
���T�#��G���,�-�-�.�.�.����E���� �{�{�����D��M�M�*�*�*����L�!�!�!�!�!rrH)rbrErr5rr)rr0r1rrJrKs@rrara�sB�������"�"�"�"�"�"�"�"�"�"�"rrac��eZdZdZdS)r^ztA title.

    attributes :
    * BaseLayout attributes

    A title must not contain a section nor a paragraph!
    NrTr2rrr^r^�����������rr^c��eZdZdZdS)r]zzA simple text paragraph.

    attributes :
    * BaseLayout attributes

    A paragraph must not contains a section !
    NrTr2rrr]r]�rhrr]c�.��eZdZdZ				dd�fd�
Z�xZS)�Tablea#Some tabular data.

    attributes :
    * BaseLayout attributes
    * cols : the number of columns of the table (REQUIRED)
    * rheaders : the first row's elements are table's header
    * cheaders : the first col's elements are table's header
    * title : the table's optional title
    Nrr2�colsr?rWrX�rheaders�cheadersrr5rrc���t���|���t|t��sJ�||_||_||_||_dS)Nr[)r7rr8r?rlrWrmrn)rrlrWrmrnrrs      �rrzTable.__init__�sV���	�����(��+�+�+��$��$�$�$�$�$���	���
� ��
� ��
�
�
r)Nrrr2)rlr?rWrXrmr?rnr?rr5rrrQrKs@rrkrk�sZ���������!���)+�

!�
!�
!�
!�
!�
!�
!�
!�
!�
!�
!rrk)rI�
__future__r�collections.abcrr�typingrrr�%pylint.reporters.ureports.base_writerr	r
r�VisitLeaveFunctionrr4rGrSrVrar^r]rkr2rr�<module>rus%��
��
#�"�"�"�"�"�.�.�.�.�.�.�.�.�)�)�)�)�)�)�)�)�)�)�<�<�<�<�<�<��W�T�]�]��
�'�)�7�
+�
+�
+���r�3��n�d�2�3��+�+�+�+�+�+�+�+�,#)�#)�#)�#)�#)��#)�#)�#)�R
�
�
�
�
�5�
�
�
������4����!�!�!�!�!�j�!�!�!�4"�"�"�"�"��"�"�"������J���������
����!�!�!�!�!�J�!�!�!�!�!r

Hacked By AnonymousFox1.0, Coded By AnonymousFox