관리-도구
편집 파일: check_elif.cpython-311.pyc
� �܋f[ � � � d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z erd d lmZ G d � de � � Zdd�ZdS )� )�annotationsN)� TokenInfo)� TYPE_CHECKING)�nodes)�BaseTokenChecker)�only_required_for_messages)�HIGH)�PyLinterc �r � � e Zd ZdZdZddiZd� fd �Zdd �Zdd �Zdd�Z e d� � dd�� � Z� xZS )�ElseifUsedCheckerz9Checks for use of "else if" when an "elif" could be used.�else_if_used�R5501)zQConsider using "elif" instead of "else" then "if" to remove one indentation level�else-if-usedz�Used when an else statement is immediately followed by an if statement and does not contain statements that would be unrelated to it.�linterr �return�Nonec �r �� t � � � |� � | � � � d S �N)�super�__init__�_init)�selfr � __class__s ��m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/check_elif.pyr zElseifUsedChecker.__init__# s, �� � ������ � � �� � ������ c � � i | _ d S r ��_elifs)r s r r zElseifUsedChecker._init'