관리-도구
편집 파일: command_context.cpython-38.pyc
U ʗRe � @ sB d dl mZmZ d dlmZmZmZ eddd�ZG dd� d�ZdS ) � )� ExitStack�contextmanager)�ContextManager� Generator�TypeVar�_TT)� covariantc sL e Zd Zdd�� fdd�Zeed d�dd��Zee ed�d d �Z � Z S )�CommandContextMixInN)�returnc s t � �� d| _t� | _d S )NF)�super�__init__�_in_main_contextr � _main_context��self�� __class__� ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/cli/command_context.pyr s zCommandContextMixIn.__init__)NNNc c s: | j r t�d| _ z| j� d V W 5 Q R X W 5 d| _ X d S )NTF)r �AssertionErrorr r r r r �main_context s z CommandContextMixIn.main_context)�context_providerr c C s | j s t�| j�|�S )N)r r r � enter_context)r r r r r r s z!CommandContextMixIn.enter_context)�__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