/opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/extensions/__pycache__
� ��8��Iu� �v � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z erd dl mZ G d� de� � Zdd �Z dS )� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinterc �` � e Zd ZdZdZddiZ ed� � dd �� � Zedd�� � Z d S )�ConfusingConsecutiveElifCheckerziChecks if "elif" is used right after an indented block that finishes with "if" or "elif" itself. �confusing_elif�R5601)zjConsecutive elif with differing indentation level, consider creating a function to separate the inner elif�confusing-consecutive-elifa Used when an elif statement follows right after an indented block which itself ends with if or elif. It may not be ovious if the elif statement was willingly or mistakenly unindented. Extracting the indented if statement into a separate function might avoid confusion and prevent errors.r �node�nodes.If�return�Nonec � � t |j d t j � � o| � |j d � � }|� � � r&|r&| � d|j d �� � d S d S d S )N���r r )r )� isinstance�bodyr �If�_has_no_else_clause�has_elif_block�add_message�orelse)�selfr �body_ends_with_ifs �q/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/pylint/extensions/confusing_elif.py�visit_ifz(ConfusingConsecutiveElifChecker.visit_if$ s� � �&��I�b�M�5�8� � � 6��&�&�t�y��}�5�5� � ��� � � P�%6� P����9���A���O�O�O�O�O� P� P� P� P� �boolc � � | j }|rOt |d t j � � r/|d j }|r t |d t j � � �/|r t |d t j � � rdS dS )Nr TF)r r r r )r r s r r z3ConfusingConsecutiveElifChecker._has_no_else_clause, s~ � ����� &��F�1�I�u�x�8�8� &��A�Y�%�F� � &��F�1�I�u�x�8�8� &�� ��F�1�I�u�x�8�8� ��4��ur N)r r r r )r r r r ) �__name__� __module__�__qualname__�__doc__�name�msgsr r �staticmethodr � r r r r s� � � � � � �� � �D�� � �D� �� <�=�=�P� P� P� >�=�P� �� � � �\�� � r r �linterr r r c �J � | � t | � � � � d S )N)�register_checkerr )r* s r �registerr- 6 s% � � ���;�F�C�C�D�D�D�D�Dr N)r* r r r )� __future__r �typingr �astroidr �pylint.checkersr �pylint.checkers.utilsr �pylint.lintr r r- r) r r �<module>r4 s� �� #� "� "� "� "� "� � � � � � � � � � � � � '� '� '� '� '� '� <� <� <� <� <� <�� %�$�$�$�$�$�$�!� !� !� !� !�k� !� !� !�HE� E� E� E� E� Er
.
Edit
..
Edit
__init__.cpython-311.pyc
Edit
_check_docs_utils.cpython-311.pyc
Edit
bad_builtin.cpython-311.pyc
Edit
broad_try_clause.cpython-311.pyc
Edit
check_elif.cpython-311.pyc
Edit
code_style.cpython-311.pyc
Edit
comparetozero.cpython-311.pyc
Edit
comparison_placement.cpython-311.pyc
Edit
confusing_elif.cpython-311.pyc
Edit
consider_refactoring_into_while_condition.cpython-311.pyc
Edit
consider_ternary_expression.cpython-311.pyc
Edit
dict_init_mutate.cpython-311.pyc
Edit
docparams.cpython-311.pyc
Edit
docstyle.cpython-311.pyc
Edit
dunder.cpython-311.pyc
Edit
empty_comment.cpython-311.pyc
Edit
emptystring.cpython-311.pyc
Edit
eq_without_hash.cpython-311.pyc
Edit
for_any_all.cpython-311.pyc
Edit
magic_value.cpython-311.pyc
Edit
mccabe.cpython-311.pyc
Edit
no_self_use.cpython-311.pyc
Edit
overlapping_exceptions.cpython-311.pyc
Edit
private_import.cpython-311.pyc
Edit
redefined_loop_name.cpython-311.pyc
Edit
redefined_variable_type.cpython-311.pyc
Edit
set_membership.cpython-311.pyc
Edit
typing.cpython-311.pyc
Edit
while_used.cpython-311.pyc
Edit