mďʒ,ndZddlmZddlZddlZddlmZmZddlm Z m Z m Z m Z m Z mZmZmZmZmZmZmZer ddlmZddlmZn Gdd ZereeejefZneeejfZeejgZeeeeejfZGd d eZeZ ee e fZ!Gd d eZ"eee ee!eefZ#e ee#fZ$GddeZ%e Z&eee'ee(ee efZ)eee'ee(ee efZ*eee)fZ+eee*fZ,GddeZ-GddeZ.eeefZ/e e eeefZ0GddeZ1GddeZ2GddeZ3GddeZ4dS)z' Types for use throughout coverage.py. ) annotationsN) FrameType ModuleType) AnyCallableDictIterableListMappingOptionalSetTupleTypeUnion TYPE_CHECKING)Protocol) FileTracerceZdZdS)rN)__name__ __module__ __qualname__b/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/coverage/types.pyrrs rrceZdZdZ ddd ZdS)TTraceFnzA Python trace function.NframereventstrargrlinenoOptional[TLineNo]returnOptional[TTraceFn]cdSNr)selfrrr r!s r__call__zTTraceFn.__call__-s  rr&) rrrrr rr!r"r#r$rrr__doc__r(rrrrr+s8"" %)        rrcZeZdZUdZded<ded<ded<ded<ded <d ed <ded <d S)TFileDispositionz9A simple value type for recording what to do with a file.roriginal_filenamecanonical_filename Optional[str]source_filenamebooltracereasonzOptional[FileTracer] file_tracerhas_dynamic_filenameNrrrr*__annotations__rrrr,r,=sfCC""""KKKKKK%%%%rr,ceZdZUdZded<ded<ded<ded <d ed <d ed <ded<ddZddZddZddZddZ ddZ dS)TTracerzEither CTracer or PyTracer. TTraceDatadatar1 trace_arcsz,Callable[[str, FrameType], TFileDisposition] should_tracez(Mapping[str, Optional[TFileDisposition]]should_trace_cachez.Optional[Callable[[FrameType], Optional[str]]]should_start_contextz)Optional[Callable[[Optional[str]], None]]switch_contextTWarnFnwarnr#NonecdSr&rr's r__init__zTTracer.__init__` rrcdS)z.Start this tracer, returning a trace function.NrrEs rstartz TTracer.startcrcdS)zStop this tracer.NrrEs rstopz TTracer.stopfrJrcdS)zHas there been any activity?NrrEs ractivityzTTracer.activityirJrcdS)zReset the activity() flag.NrrEs rreset_activityzTTracer.reset_activitylrJrOptional[Dict[str, int]]cdS)z+Return a dictionary of statistics, or None.NrrEs r get_statszTTracer.get_statsorJrN)r#rC)r#r)r#r1)r#rQ) rrrr*r7rFrIrLrNrPrSrrrr9r9Us%%>>>>@@@@HHHH====MMM    ====    ++++))))::::::rr9c"eZdZdZd dZd d Zd S) TConfigurablez@Something that can proxy to the coverage configuration settings. option_namerr#Optional[TConfigValueOut]cdS)a<Get an option from the configuration. `option_name` is a colon-separated string indicating the section and option name. For example, the ``branch`` option in the ``[run]`` section of the config file would be indicated with `"run:branch"`. Returns the value of the option. Nr)r'rVs r get_optionzTConfigurable.get_optionrJrvalue'Union[TConfigValueIn, TConfigSectionIn]rCcdS)aBSet an option in the configuration. `option_name` is a colon-separated string indicating the section and option name. For example, the ``branch`` option in the ``[run]`` section of the config file would be indicated with `"run:branch"`. `value` is the new value for the option. Nr)r'rVrZs r set_optionzTConfigurable.set_optionrJrN)rVrr#rW)rVrrZr[r#rC)rrrr*rYr]rrrrUrUsBJJ            rrUceZdZdZddZdS) TPluginConfigz/Something that can provide options to a plugin.pluginrr#TConfigSectionOutcdS)zGet the options for a plugin.Nr)r'r`s rget_plugin_optionsz TPluginConfig.get_plugin_optionsrJrN)r`rr#ra)rrrr*rcrrrr_r_s.99,,,,,,rr_c(eZdZUdZded<ded<dS)TPluginz What all plugins have in common.r_coverage_plugin_namer1_coverage_enabledNr6rrrreres0**rreceZdZdZd dd ZdS)rAzA callable warn() function.NFmsgrslugr/oncer1r#rCcdSr&r)r'rirjrks rr(zTWarnFn.__call__rGr)NF)rirrjr/rkr1r#rCr)rrrrArAs3%%       rrAc"eZdZdZd dZd d Zd S) TDebugCtlz,A DebugControl object, or something like it.optionrr#r1cdS)z@Decide whether to output debug information in category `option`.Nr)r'ros rshouldzTDebugCtl.shouldrJrrirCcdS)zWrite a line of debug output.Nrr'ris rwritezTDebugCtl.writerJrN)rorr#r1rirr#rC)rrrr*rqrtrrrrnrnsF66OOOO,,,,,,rrnceZdZdZddZdS) TWritablez Anything that can be written to.rirr#rCcdS)zWrite a message.Nrrss rrtzTWritable.writerJrNru)rrrr*rtrrrrwrws.**rrw)5r* __future__rospathlibtypesrrtypingrrrr r r r r rrrrrcoverage.pluginrrPathLikeFilePathPathFilePathClasses FilePathTyperintTLineNoTArcr,TTraceFileDatar:r9 TCovKwargsr1floatTConfigValueInTConfigValueOutTConfigSectionInrarUr_TMorfTSourceTokenLinesrerArnrwrrrrs#""""" ''''''''  *******        'S"+c**+HHS"+%&H %T#YW\ 223       x      Wg      x   (s7|SYC89 #~% & :::::h:::@ %c5#x} DEF5sE3S !ABC3./C01     H   2,,,,,H,,, j#oT%S/23h     h   ,,,,,,,,r