§
{<ˆj³ ã óR — d Z ddlmZ ddlmZ ddlmZmZmZm Z dd „Z
dd
„Zdd„ZdS )z"Determine contexts for coverage.pyé )Úannotations)Ú FrameType)ÚcastÚCallableÚOptionalÚSequenceÚcontext_switchersú.Sequence[Callable[[FrameType], Optional[str]]]Úreturnú.Optional[Callable[[FrameType], Optional[str]]]c óR ‡ — ‰ sdS t ‰ ¦ « dk r‰ d S d ˆ fd„}|S )
a Create a single context switcher from multiple switchers.
`context_switchers` is a list of functions that take a frame as an
argument and return a string to use as the new context label.
Returns a function that composites `context_switchers` functions, or None
if `context_switchers` is an empty list.
When invoked, the combined switcher calls `context_switchers` one-by-one
until a string is returned. The combined switcher returns None if all
`context_switchers` return None.
Né r Úframer r ú
Optional[str]c ó4 •— ‰D ]} || ¦ « }|�|c S ŒdS )z,The combiner for multiple context switchers.N© )r ÚswitcherÚnew_contextr s €úd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/coverage/context.pyÚshould_start_contextz7combine_context_switchers.