Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/extensions/__pycache__/confusing_elif.cpython-39.pyc
Ðазад
a n�h � @ sp d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z erLd dl mZ G dd� de�Zd d d�dd �Z dS )� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinterc @ sH e Zd ZdZdZddiZed�ddd�d d ��Zeddd�dd ��Z dS )�ConfusingConsecutiveElifCheckerziChecks if "elif" is used right after an indented block that finishes with "if" or "elif" itself. Zconfusing_elifZR5601)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 obvious 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 znodes.If�None)�node�returnc C sF t |jd tj�o | �|jd �}|�� rB|rB| jd|jd d� d S )N���r r )r )� isinstance�bodyr �If�_has_no_else_clauseZhas_elif_blockZadd_message�orelse)�selfr Zbody_ends_with_if� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/extensions/confusing_elif.py�visit_if$ s ��z(ConfusingConsecutiveElifChecker.visit_if�boolc C sB | j }|r&t|d tj�r&|d j }q|r:t|d tj�r>dS dS )Nr TF)r r r r )r r r r r r , s z3ConfusingConsecutiveElifChecker._has_no_else_clauseN) �__name__� __module__�__qualname__�__doc__�nameZmsgsr r �staticmethodr r r r r r s �r r r )�linterr c C s | � t| �� d S )N)Zregister_checkerr )r r r r �register6 s r N)� __future__r �typingr Zastroidr Zpylint.checkersr Zpylint.checkers.utilsr Zpylint.lintr r r r r r r �<module> s $
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка