Re@s~ddlmZddlmZddlmZerdddlmZmZm Z e dddZ Gdd d e Z d S) )contextmanager) ExitStack)MYPY_CHECK_RUNNING)IteratorContextManagerTypeVar_TZ covariantTcs@eZdZfddZeddZddZS)CommandContextMixIncs,tt|jd|_t|_dS)NF)superr __init___in_main_contextr _main_context)self) __class__/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/cli/command_context.pyr s zCommandContextMixIn.__init__ccsD|j std|_z|j dVWdQRXWdd|_XdS)NTF)r AssertionErrorr )rrrr main_contexts   z CommandContextMixIn.main_contextcCs|jst|jj|S)N)r rr enter_context)rcontext_providerrrrr sz!CommandContextMixIn.enter_context)__name__ __module__ __qualname__r rrrrr)rrr s  r N) contextlibrpip._vendor.contextlib2rpip._internal.utils.typingrtypingrrrrobjectr rrrrs