o
    ~#g                     @   sB   d dl mZmZ d dlmZmZmZ edddZG dd dZdS )	    )	ExitStackcontextmanager)ContextManagerIteratorTypeVar_TT)	covariantc                       sJ   e Zd Zd
 fddZeded fddZdee defdd	Z	  Z
S )CommandContextMixInreturnNc                    s   t    d| _t | _d S )NF)super__init___in_main_contextr   _main_contextself	__class__ /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pip/_internal/cli/command_context.pyr      s   
zCommandContextMixIn.__init__c                 c   s`    | j rJ d| _ z"| j d V  W d    n1 sw   Y  W d| _ d S W d| _ d S d| _ w )NTF)r   r   r   r   r   r   main_context   s   

z CommandContextMixIn.main_contextcontext_providerc                 C   s   | j sJ | j|S )N)r   r   enter_context)r   r   r   r   r   r      s   
z!CommandContextMixIn.enter_context)r
   N)__name__
__module____qualname__r   r   r   r   r   r   r   __classcell__r   r   r   r   r	      s
    
r	   N)	
contextlibr   r   typingr   r   r   r   r	   r   r   r   r   <module>   s    