'L i#'"dZddlmZddlZddlmZddlmZddlZddlZddl m Z ddl m Z ddl m Z dd l mZdd lmZdd lmZddlZGd d ej(ZddZej.dddZddZddZddZddZddZy)z3Version info, help messages, tracing configuration.) annotationsN) Generator)Sequence)Any)Config)ExitCode) PrintHelp)Parser)TerminalReportercVeZdZdZdd dfdZ d ddZxZS) HelpActiona2An argparse Action that will raise a PrintHelp exception in order to skip the rest of the argument parsing when --help is passed. This prevents argparse from raising UsageError when `--help` is used along with missing required arguments when any are defined, for example by ``pytest_addoption``. This is similar to the way that the builtin argparse --help option is implemented by raising SystemExit. To opt in to this behavior, the parse caller must set `namespace._raise_print_help = True`. Otherwise it just sets the option. N)helpc0t|||ddd|y)NrTF)option_stringsdestnargsconstdefaultr)super__init__)selfrrr __class__s X/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/_pytest/helpconfig.pyrzHelpAction.__init__"s) )  clt||j|jt|ddrty)N_raise_print_helpF)setattrrrgetattrr )rparser namespacevalues option_strings r__call__zHelpAction.__call__.s/  499djj1 915 9O :r)rz Sequence[str]rstrr str | NonereturnNone)N) rzargparse.ArgumentParserr zargparse.Namespacer!zstr | Sequence[Any] | Noner"r%r&r')__name__ __module__ __qualname____doc__rr# __classcell__)rs@rr r sn OS  +  36  AK    "%) ' & +  "   rr c h|jd}|jdddddd|jd d td d |jdddgdd|jdddd|jddddd|jddddd d!d"#|jd$d%d&dd'(y))N debugconfigz --versionz-VcountrversionzoDisplay pytest version and information about plugins. When given twice, also display information about plugins.)actionrrrz-hz--helprz(Show help message and configuration info)r1rrz-pappendpluginsnamezEarly-load given plugin module name or entry point (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`. See also --disable-plugin-autoload.)r1rrmetavarrz--disable-plugin-autoload store_trueFzDisable plugin auto-loading through entry point packaging metadata. Only plugins explicitly specified in -p or env var PYTEST_PLUGINS will be loaded.)r1rrz --traceconfigz--trace-configz)Trace considerations of conftest.py filesz--debugstore?zpytestdebug.logdebugDEBUG_FILE_NAMEzStore internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Default: pytestdebug.log.)r1rrrr5rz-oz--override-ini override_inizhOverride configuration option with "option=value" style, e.g. `-o strict_xfail=True -o cache_dir=cache`.)rr1r)getgroup addoption _addoptionr )rgroups rpytest_addoptionr@;s OOM *E OO  D     7    <   OO#\  OO 8  OO !$    : rT)wrapperc #Kdjjr@jj}t|ddjdj t j djtttjjjtjjj j"j$j'jj(j+tj,jd|dd fd }j/|Sw) Nwzutf-8)encodingz@versions pytest-{}, python-{} invocation_dir={} cwd={} args={} .z$writing pytest debug information to  cjtjjdjdj j jdy)Nz"wrote pytest debug information to rF)closesysstderrwriter4traceroot setwriter)config debugfile undo_tracingsr unset_tracingz+pytest_cmdline_parse..unset_tracingsL OO  JJ  A)..AQQST U LL   ' ' - Nr)r&r')optionr9openrKformatpytest __version__joinmapr$rI version_infoinvocation_paramsdirosgetcwdargsrLrMrN pluginmanagerenable_tracingrJ add_cleanup)pathrRrOrPrQs @@@rpytest_cmdline_parserdzs F }}}}""sW5  @@F""S#"2"234((,, ((-- A   ##IOO4++::<  ?vRHI  =) MsEE#ctjjdtjdtj dt |}|r*|D]$}tjj|dz&yy)zQVmWG ##ABK+DGGFTM*+7+<GGIGG $% D( d "T#Jav&'(GGIGGIGG =>GG ?@GG  "++J;@   }444$?@rcg}|jj}|rc|jd|D]M\}}t|dt |}|j d|j d|}|jd|zO|S)Nzregistered third-party plugins:rg-z at rw)r`list_plugin_distinfor2rrepr project_namer0)rOlinesriplugindistloccontents rrhrhs E%%::rs9"%$ !#$,- ##L<~@* P@f r