관리-도구
편집 파일: message_definition.cpython-311.pyc
� �܋f� � � � d dl mZ d dlZd dlZd dlmZmZ d dlmZ d dl m Z mZmZ d dl mZ d dlmZ erd dlmZ G d � d � � ZdS )� )�annotationsN)� TYPE_CHECKING�Any)�nodes)� _SCOPE_EXEMPT� MSG_TYPES�WarningScope)�InvalidMessageError)�normalize_text)�BaseCheckerc �p � e Zd Z d'd(d�Zed)d�� � Zd*d�Zd+d�Zd+d�Z d,d-d�Z d.d/d!�Z d0d&�ZdS )1�MessageDefinitionNFT�checkerr �msgid�str�msg�description�symbol�scope� minversion�tuple[int, int] | None� maxversion� old_names�list[tuple[str, str]] | None�shared�bool�default_enabled�return�Nonec �N � |j | _ | � |� � || _ || _ || _ || _ || _ || _ || _ | | _ || _ g | _ | r9| D ]8\ }} | � |� � | j � || f� � �7d S d S �N)�name�checker_name�check_msgidr r r r r r r r r r �append)�selfr r r r r r r r r r r � old_msgid� old_symbols �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/message/message_definition.py�__init__zMessageDefinition.__init__ s� � � $�L������������ �������&����� �$���$������.���02���� �)2� � �%� �:�� � ��+�+�+���%�%�� �+�� � � � � � � � c � � t | � � dk rt d| ��� � �| d t vrt d| d � d| ��� � �d S )N� zInvalid message id r zBad message type z in )�lenr r )r s r) r$ zMessageDefinition.check_msgid8 sb � ��u�:�:��?�?�%�&E�E�&E�&E�F�F�F���8�9�$�$�%�&Q�%��(�&Q�&Q��&Q�&Q�R�R�R� %�$r+ �otherr c �l � t |t � � o| j |j k o| j |j k S r! )� isinstancer r r )r&