관리-도구
편집 파일: file_state.cpython-311.pyc
� �܋fB, � �� � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z m Z d dlmZ d dl mZmZmZ ej dk rd d lmZ nd d lmZ e rd d lmZmZ e ee eef f Z G d� d� � ZdS ) � )�annotationsN)�defaultdict)�Iterator)� TYPE_CHECKING�Dict)�nodes)�%INCOMPATIBLE_WITH_USELESS_SUPPRESSION�MSG_STATE_SCOPE_MODULE�WarningScope)� � )�Literal)�MessageDefinition�MessageDefinitionStorec �l � e Zd ZdZ d0dd�d1d�Zd2d�Zd3d�Zd4d�Zd5d"�Z d6d7d'�Z d8d,�Z d9d.�Zd:d/�ZdS );� FileStatez<Hold internal state specific to the currently analyzed file.NF)�is_base_filestate�modname� str | None� msg_store�MessageDefinitionStore | None�node�nodes.Module | Noner �bool�return�Nonec �H � |�t j dt d�� � |�t j dt d�� � || _ i | _ i | _ t j t � � | _ i | _ || _ |r |j | _ nd | _ || _ || _ d S )NzZFileState needs a string as modname argument. This argument will be required in pylint 3.0� �� stacklevelznFileState needs a 'MessageDefinitionStore' as msg_store argument. This argument will be required in pylint 3.0)�warnings�warn�DeprecationWarning� base_name�_module_msgs_state�_raw_module_msgs_state�collectionsr �set� _ignored_msgs�_suppression_mapping�_module�tolineno�_effective_max_line_number�_msgs_store�_is_base_filestate)�selfr r r r s �h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/utils/file_state.py�__init__zFileState.__init__% s� � � �?��M�?�"�� � � � � ���M�?�"�� � � � � !���46���8:��#� �#�C�(�(� �� AC��!����� 3�.2�m�D�+�+�.2�D�+�$���"3��� � � � msgs_storer �module_node�nodes.Modulec � � t j dt d�� � | j � � � D ]!\ }}|� � � | j |<