bg ddlmZddlZddlmZddlmZmZmZm Z ddl m Z ddl m Z ddlmZddlmZer dd lmZdd lmZed ee eeeffZGd d ZdS)) annotationsN)MutableSequence) TYPE_CHECKING DefaultDictListTuple)EmptyReportError)Section)ReportsCallable) LinterStats) BaseChecker)PyLinterr cJeZdZdZddZddZddZddZddZd dZ d!dZ dS)"ReportsHandlerMixInzrA mix-in class containing all the reports and stats manipulation related methods for the main lint class. returnNonecPtjt|_i|_dS)N) collections defaultdictlist_reports_reports_stateselfs x/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/reporters/reports_handler_mix_in.py__init__zReportsHandlerMixIn.__init__s"%0%>## g%%x$&?@@@@@rcB|}d|j|<dS)z"Enable the report of the given id.TNr'rrr!s r enable_reportz!ReportsHandlerMixIn.enable_report1s$>>##(,H%%%rcB|}d|j|<dS)z#Disable the report of the given id.FNr+r,s rdisable_reportz"ReportsHandlerMixIn.disable_report6s$>>##(-H%%%rboolc8|j|dS)z:Is the report associated to the given identifier enabled ?T)rgetr,s rreport_is_enabledz%ReportsHandlerMixIn.report_is_enabled;s"&&x666rrrstatsr old_statsLinterStats | Noner cVtd|jjd}|D]v}|j|D]f\}}}||st|} ||||n#t $rYFwxYw||_||gw|S)zRender registered reports.Reportz statements analysed.) r r4 statementr rr3r report_idr() rr4r5sectr%r!r#r$ report_sects r make_reportsz ReportsHandlerMixIn.make_reports?s xDJ$8!O!O!OPP((** ) )G+/=+A ) )''4--h77%g.. DeY7777'H(0 % K(((( ) s- A;; BBN)rr)rr) r!r"r#r"r$r r%r rr)r!r"rr)r!r"rr0)rrr4r r5r6rr ) __name__ __module__ __qualname____doc__rr r)r-r/r3r=rrrrs2222#### A A A A---- .... 7777rr) __future__rrcollections.abcrtypingrrrrpylint.exceptionsr pylint.reporters.ureports.nodesr pylint.typingr pylint.utilsr pylint.checkersr pylint.lint.pylinterrr" ReportsDictrrBrrrMs! #"""""++++++::::::::::::......333333))))))$$$$$$.++++++-------eCo4M.N)OOP ::::::::::r