File: //home/arjun/projects/env/lib/python3.10/site-packages/coverage/__pycache__/context.cpython-310.pyc
o
!we� � @ sV d Z ddlmZ ddlmZ ddlmZmZmZm Z dd d
�Z
ddd�Zddd�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 s. � sdS t � �dkr� d S d
� fdd �}|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 s&