관리-도구
편집 파일: command_context.cpython-310.pyc
o ƚRe� � @ sB d dl mZmZ d dlmZmZmZ eddd�ZG dd� d�ZdS ) � )� ExitStack�contextmanager)�ContextManager�Iterator�TypeVar�_TT)� covariantc sJ e Zd Zd � fdd�Zeded fdd��Zdee defdd �Z � Z S )�CommandContextMixIn�returnNc s t � �� d| _t� | _d S )NF)�super�__init__�_in_main_contextr � _main_context��self�� __class__� ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/cli/command_context.pyr s zCommandContextMixIn.__init__c c s` � | j rJ �d| _ z"| j� d V W d � n1 sw Y W d| _ d S W d| _ d S d| _ w )NTF)r r r r r r �main_context s � � �z CommandContextMixIn.main_context�context_providerc C s | j sJ �| j�|�S )N)r r � enter_context)r r r r r r s z!CommandContextMixIn.enter_context)r N)�__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