3 Bu_@s\ddlmZddlmZddlmZerHddlmZmZm Z e dddZ Gdd d e Z d S) )contextmanager) ExitStack)MYPY_CHECK_RUNNING)IteratorContextManagerTypeVar_TT)Z covariantcs0eZdZfddZeddZddZZS)CommandContextMixIncs tt|jd|_t|_dS)NF)superr __init___in_main_contextr _main_context)self) __class__/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-1.el7.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/command_context.pyr szCommandContextMixIn.__init__ccs<|j s td|_z|j dVWdQRXWdd|_XdS)NTF)r AssertionErrorr )rrrr main_contexts  z CommandContextMixIn.main_contextcCs|js t|jj|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