
    fXf                     ^    d dl mZmZ d dlmZmZmZ  edd          Z G d d          ZdS )	    )	ExitStackcontextmanager)ContextManager	GeneratorTypeVar_TT)	covariantc                   d     e Zd Zd fdZeded         fd            Zdee         defdZ	 xZ
S )	CommandContextMixInreturnNc                 |    t                                                       d| _        t                      | _        d S )NF)super__init___in_main_contextr   _main_context)self	__class__s    Z/var/www/html/Qu*py/bism/lib/python3.11/site-packages/pip/_internal/cli/command_context.pyr   zCommandContextMixIn.__init__   s3     %&[[    )NNNc              #      K   | j         rJ d| _         	 | j        5  d V  d d d            n# 1 swxY w Y   d| _         d S # d| _         w xY w)NTF)r   r   )r   s    r   main_contextz CommandContextMixIn.main_context   s      (((( $	*#                 %*D!!!ED!))))s&   A  ,A  0A  0A   	A	context_providerc                 H    | j         sJ | j                            |          S )N)r   r   enter_context)r   r   s     r   r   z!CommandContextMixIn.enter_context   s)    $$$$!//0@AAAr   )r   N)__name__
__module____qualname__r   r   r   r   r   r   r   __classcell__)r   s   @r   r   r      s        ) ) ) ) ) )
 *i(89 * * * ^*BnR.@ BR B B B B B B B Br   r   N)	
contextlibr   r   typingr   r   r   r   r    r   r   <module>r"      s    0 0 0 0 0 0 0 0 5 5 5 5 5 5 5 5 5 5WTT"""B B B B B B B B B Br   