Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/reporters/__pycache__/multi_reporter.cpython-39.pyc
Ðазад
a n�h� � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZmZ d dl m Z d dlmZ d dl mZ er|d d lmZ d d lmZ G dd� d�ZdS ) � )�annotationsN)�Callable)�copy)� TYPE_CHECKING�TextIO)�Message)�BaseReporter)�LinterStats)�PyLinter)�Sectionc @ s e Zd ZdZdZdZd3dddd�d d �Zedd�dd ��Zej d4ddd�dd ��Zdd�dd�Z edd�dd��Zedd�dd��Zej ddd�dd��Zddd�dd�Z d5ddd �d!d"�Zd#dd$�d%d&�Zd'dd$�d(d)�Zdd*dd+�d,d-�Zd.d/dd0�d1d2�ZdS )6� MultiReporterz+Reports messages and layouts in plain text.Z_internal_multi_reporter� Nzlist[BaseReporter]zCallable[[], None]z TextIO | None)� sub_reporters�close_output_files�outputc C s2 || _ || _t�� tj | _d | _|| _g | _d S �N) �_sub_reportersr �os�getcwd�sep�_path_strip_prefix�_linter�out�messages)�selfr r r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/reporters/multi_reporter.py�__init__! s zMultiReporter.__init__)�returnc C s | j S r )�_MultiReporter__out�r r r r r . s zMultiReporter.out�None)r r c C s d| _ |durtd��dS )z�MultiReporter doesn't have its own output. This method is only provided for API parity with BaseReporter and should not be called with non-None values for 'output'. Nz-MultiReporter does not support direct output.)r �NotImplementedError)r r r r r r 2 s c C s | � � d S r )r r r r r �__del__= s zMultiReporter.__del__�strc C s | j S r )r r r r r �path_strip_prefix@ s zMultiReporter.path_strip_prefixzPyLinter | Nonec C s | j S r )r r r r r �linterD s zMultiReporter.linterr )�valuer c C s || _ | jD ] }||_qd S r )r r r&