o Ec@sBddlmZmZddlmZmZmZedddZGdddZdS) ) ExitStackcontextmanager)ContextManagerIteratorTypeVar_TT)Z covariantcsJeZdZd fdd ZededfddZdeedefdd Z Z S) CommandContextMixInreturnNcstd|_t|_dS)NF)super__init___in_main_contextr _main_contextself __class__T/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/cli/command_context.pyr s  zCommandContextMixIn.__init__ccs`|jrJd|_z"|j dVWdn1swYWd|_dSWd|_dSd|_w)NTF)r r rrrr main_context s  z CommandContextMixIn.main_contextcontext_providercCs|jsJ|j|S)N)r r enter_context)rrrrrrs  z!CommandContextMixIn.enter_context)r N) __name__ __module__ __qualname__r rrrrrr __classcell__rrrrrs  rN) contextlibrrtypingrrrrrrrrrs