
    *,h                     P    d dl mZmZ d dlmZmZmZ  edd      Z G d d      Zy)	    )	ExitStackcontextmanager)ContextManager	GeneratorTypeVar_TT)	covariantc                   R     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returnc                 N    t         |           d| _        t               | _        y )NF)super__init___in_main_contextr   _main_context)self	__class__s    c/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pip/_internal/cli/command_context.pyr   zCommandContextMixIn.__init__   s      %&[    )NNNc              #      K   | j                   rJ d| _         	 | j                  5  d  d d d        d| _         y # 1 sw Y   xY w# d| _         w xY ww)NTF)r   r   )r   s    r   main_contextz CommandContextMixIn.main_context   sT     ((( $	*##  %*D!  %*D!s.   AA :A AAA 	AAcontext_providerc                 T    | j                   sJ | j                  j                  |      S )N)r   r   enter_context)r   r   s     r   r   z!CommandContextMixIn.enter_context   s&    $$$!!//0@AAr   )r   N)__name__
__module____qualname__r   r   r   r   r   r   r   __classcell__)r   s   @r   r   r      sD    )
 *i(89 * *BnR.@ BR Br   r   N)	
contextlibr   r   typingr   r   r   r   r    r   r   <module>r"      s&    0 5 5TT"B Br   