Your IP : 3.147.49.19


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/pluggy/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pluggy/__pycache__/_result.cpython-311.pyc

�

��bgC��.�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZe
rdd
lmZeeeee
efZed��Zdd�ZGd�de��ZGd�de	e��ZdS)z"
Hook wrapper "result" utilities.
�)�annotations)�
TracebackType)�Callable)�cast)�	Generator)�Generic)�Optional)�Tuple)�Type)�
TYPE_CHECKING)�TypeVar)�NoReturn�_T�wrap_controller�DGenerator[None, _Result[_T], None] | Generator[None, object, object]�msg�str�returnrc�Z�|j}td|j|j|j|fz���)Nzwrap_controller at %r %s:%d %s)�gi_code�RuntimeError�co_name�co_filename�co_firstlineno)rr�cos   �_/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pluggy/_result.py�_raise_wrapfailrs9��
�	 �B�
�(�
�:�r�~�r�'8�#�
>�	?����c��eZdZdZdS)�
HookCallErrorzHook was called incorrectly.N)�__name__�
__module__�__qualname__�__doc__�rrr r &s������&�&�&�&rr c�z�eZdZdZdd�Zedd
���Zedd���Zedd���Z	dd�Z
dd�Zdd�ZdS)�_Result��_result�
_exception�result�	_T | None�	exception�BaseException | Noner�Nonec�"�||_||_dS�Nr()�selfr+r-s   r�__init__z_Result.__init__-s��
���#����r�_ExcInfo | Nonec�F�|j}|�dSt|��||jfSr1)r*�type�
__traceback__)r2�excs  r�excinfoz_Result.excinfo5s)���o���;��4���I�I�s�C�$5�6�6rc��|jSr1)r*)r2s rr-z_Result.exception=s
����r�func�Callable[[], _T]�_Result[_T]c�p�d}dx}}	|��}n#t$r}|}Yd}~nd}~wwxYw|||��S)NT)�
BaseException)�clsr;�__tracebackhide__r+r-r8s      r�	from_callz_Result.from_callAsd�� ��!�!���	��T�V�V�F�F���	�	�	��I�I�I�I�I�I�����	�����s�6�9�%�%�%s�
�
)�$�)rc�"�||_d|_dS)a,Force the result(s) to ``result``.

        If the hook was marked as a ``firstresult`` a single value should
        be set, otherwise set a (modified) list of results. Any exceptions
        found during invocation will be deleted.

        This overrides any previous result or exception.
        Nr()r2r+s  r�force_resultz_Result.force_resultKs���������rr?c�"�d|_||_dS)z�Force the result to fail with ``exception``.

        This overrides any previous result or exception.

        .. versionadded:: 1.1.0
        Nr()r2r-s  r�force_exceptionz_Result.force_exceptionWs�����#����rc��d}|j}|�tt|j��S|�|j���)z�Get the result(s) for this hook call.

        If the hook was marked as a ``firstresult`` only a single value
        will be returned, otherwise a list of results.
        T)r*rrr)�with_tracebackr7)r2rAr8s   r�
get_resultz_Result.get_resultas?��!���o���;���D�L�)�)�)��$�$�S�%6�7�7�7rN)r+r,r-r.rr/)rr4)rr.)r;r<rr=)r+rrr/)r-r?rr/)rr)
r!r"r#�	__slots__r3�propertyr9r-�classmethodrBrDrFrIr%rrr'r'*s�������)�I�$�$�$�$��7�7�7��X�7������X���&�&�&��[�&�
�
�
�
�$�$�$�$�8�8�8�8�8�8rr'N)rrrrrr)r$�
__future__r�typesr�typingrrrrr	r
rrr
rr?�_ExcInforr�	Exceptionr r'r%rr�<module>rRs�����#�"�"�"�"�"������������������������������������������������� � � � � � �������� ���������m�$�m�X�m�5L�L�M���W�T�]�]��
�
�
�
�'�'�'�'�'�I�'�'�'�B8�B8�B8�B8�B8�g�b�k�B8�B8�B8�B8�B8r

?>