n|M d dl mZ d dlZd dlmZ d dlmZ d dlmZmZ d dl m Z d dlmZ d dl mZ erd d lmZ d d lmZ G d d ZdS ) )annotationsN)Callable)copy) TYPE_CHECKINGTextIO)Message)BaseReporter)LinterStats)PyLinter)Sectionc e Zd ZdZdZdZ d+d,dZed-d Zej d+d.d Zd/dZ ed0d Zed1d Zej d2d Zd3dZ d4d5dZd6dZd7d!Zd8d%Zd9d*ZdS ): MultiReporterz+Reports messages and layouts in plain text._internal_multi_reporter N sub_reporterslist[BaseReporter]close_output_filesCallable[[], None]output TextIO | Nonec || _ || _ t j t j z | _ d | _ || _ g | _ d S N) _sub_reportersr osgetcwdsep_path_strip_prefix_linteroutmessages)selfr r r s q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/reporters/multi_reporter.py__init__zMultiReporter.__init__! sB ,"4"$)++"6(,') returnc | j S r )_MultiReporter__outr! s r" r zMultiReporter.out. s zr$ Nonec 6 d| _ |t d dS )zMultiReporter 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 s r" r zMultiReporter.out2 s( %&UVVV r$ c . | d S r )r r( s r" __del__zMultiReporter.__del__= s !!!!!r$ strc | j S r )r r( s r" path_strip_prefixzMultiReporter.path_strip_prefix@ s &&r$ PyLinter | Nonec | j S r )r r( s r" linterzMultiReporter.linterD s |r$ valuer c 6 || _ | j D ] }||_ d S r )r r r3 )r! r4 reps r" r3 zMultiReporter.linterH s. &