B Re@s\ddlmZddlmZddlmZerHddlmZmZm Z e dddZ Gdd d e Z d S) )contextmanager) ExitStack)MYPY_CHECK_RUNNING)IteratorContextManagerTypeVar_TT) covariantcs0eZdZfddZeddZddZZS)CommandContextMixIncs tt|d|_t|_dS)NF)superr __init___in_main_contextr _main_context)self) __class__/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/cli/command_context.pyr szCommandContextMixIn.__init__c cs:|jr td|_z|j dVWdQRXWdd|_XdS)NTF)r AssertionErrorr)rrrr main_contexts  z CommandContextMixIn.main_contextcCs|js t|j|S)N)r rr enter_context)rcontext_providerrrrr s z!CommandContextMixIn.enter_context)__name__ __module__ __qualname__r rrr __classcell__rr)rrr s  r N) contextlibrpip._vendor.contextlib2rpip._internal.utils.typingrtypingrrrrobjectr rrrrs