
    0Ic                     N    d Z ddlZd Z G d de          Z G d d          ZdS )z"
Hook wrapper "result" utilities.
    Nc                 Z    | j         }t          d|j        |j        |j        |fz            )Nzwrap_controller at %r %s:%d %s)gi_codeRuntimeErrorco_nameco_filenameco_firstlineno)wrap_controllermsgcos      .lib/python3.11/site-packages/pluggy/_result.py_raise_wrapfailr      s7    		 B
(:r~r'8#
>	?      c                       e Zd ZdZdS )HookCallErrorzHook was called wrongly.N)__name__
__module____qualname____doc__ r   r   r   r      s        """"r   r   c                   L    e Zd Zd Zed             Zed             Zd Zd Z	dS )_Resultc                 "    || _         || _        d S N_result_excinfo)selfresultexcinfos      r   __init__z_Result.__init__   s    r   c                     | j         S r   )r   )r   s    r   r   z_Result.excinfo   s
    }r   c                     d}d x}}	  |            }n## t           $ r t          j                    }Y nw xY w | ||          S )NT)BaseExceptionsysexc_info)clsfunc__tracebackhide__r   r   s        r   	from_callz_Result.from_call   sb     	%TVVFF 	% 	% 	%lnnGGG	% s67###s   
 33c                 "    || _         d| _        dS )zForce 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.
        Nr   )r   r   s     r   force_resultz_Result.force_result'   s     r   c                 r    d}| j         | j        S | j         }|d                             |d                   )zGet 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.
        TN      )r   r   with_traceback)r   r(   exs      r   
get_resultz_Result.get_result1   s?     != 	.<BQ%&&r!u---r   N)
r   r   r   r    propertyr   classmethodr)   r+   r1   r   r   r   r   r      sw                X $ $ [$  . . . . .r   r   )r   r$   r   	Exceptionr   r   r   r   r   <module>r5      s     


  # # # # #I # # #). ). ). ). ). ). ). ). ). ).r   