OwlCyberSecurity - MANAGER
Edit File: command_context.cpython-312.pyc
� ���g � �P � d dl mZmZ d dlmZmZmZ edd�� Z G d� d� Zy) � )� ExitStack�contextmanager)�ContextManager� Generator�TypeVar�_TT)� covariantc �R � � e Zd Zd� fd�Zeded fd�� Zdee defd�Z � xZ S )�CommandContextMixIn�returnc �N �� t �| � � d| _ t � | _ y )NF)�super�__init__�_in_main_contextr � _main_context)�self� __class__s ��P/opt/hc_python/lib/python3.12/site-packages/pip/_internal/cli/command_context.pyr zCommandContextMixIn.__init__ s �� � ���� %���&�[��� )NNNc # � K � | j rJ �d| _ | j 5 d �� d d d � d| _ y # 1 sw Y �xY w# d| _ w xY w�w)NTF)r r )r s r �main_contextz CommandContextMixIn.main_context sP � �� ��(�(�(�(� $��� *��#�#�� $� %*�D�!� $�#�� %*�D�!�s. �A�A �:�A �A�A�A � A�A�context_providerc �T � | j sJ �| j j |� S )N)r r � enter_context)r r s r r z!CommandContextMixIn.enter_context s) � ��$�$�$�$��!�!�/�/�0@�A�Ar )r N)�__name__� __module__�__qualname__r r r r r r r � __classcell__)r s @r r r sD �� �)� �*�i�(8�9� *� �*�B�n�R�.@� B�R� Br r N) � contextlibr r �typingr r r r r � r r �<module>r"