Ë
    ôU.j  ã                  óÔ   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddlm
Z
 dd	lmZ eee   ee
e   f   Z ed
«      Z G d„ de«      Ze G d„ de	e   «      «       ZeZy)z"
Hook wrapper "result" utilities.
é    )Úannotations)ÚTracebackType)ÚCallable)Úcast)Úfinal)ÚGeneric)ÚOptional)ÚTypeVarÚ
ResultTypec                  ó   — e Zd ZdZy)ÚHookCallErrorzHook was called incorrectly.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úPC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\pluggy/_result.pyr   r      s   „ Ú&r   r   c                  óv   — e Zd ZdZdZ	 	 	 	 	 	 dd„Zedd„«       Zedd„«       Ze	dd„«       Z
dd„Zdd„Zdd	„Zy
)ÚResultzYAn object used to inspect and set the result in a :ref:`hook wrapper
    <hookwrappers>`.©Ú_resultÚ
_exceptionÚ
_tracebackc                óV   — || _         || _        |�|j                  | _        yd| _        y©ú:meta private:N©r   r   Ú__traceback__r   )ÚselfÚresultÚ	exceptions      r   Ú__init__zResult.__init__   s+   € ð ˆŒØ#ˆŒà5>Ð5J˜)×1Ñ1ˆ�ÐPTˆ�r   c                óP   — | j                   }|€yt        |«      || j                  fS r   )r   Útyper   )r    Úexcs     r   ÚexcinfozResult.excinfo*   s*   € ð �o‰oˆØˆ;Øä˜“I˜s D§O¡OÐ4Ð4r   c                ó   — | j                   S )r   )r   )r    s    r   r"   zResult.exception3   s   € ð �‰Ðr   c                ó`   — d}dx}}	  |«       } | ||«      S # t         $ r}|}Y d}~Œd}~ww xY w)r   TN)ÚBaseException)ÚclsÚfuncÚ__tracebackhide__r!   r"   r&   s         r   Ú	from_callzResult.from_call8   sF   € ð !ÐØ!Ð!ˆ�ð	Ù“VˆFñ �6˜9Ó%Ð%øô ò 	Ø�Iûð	ús   ˆ ˜	-¡(¨-c                ó.   — || _         d| _        d| _        y)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   )r    r!   s     r   Úforce_resultzResult.force_resultC   s   € ð ˆŒØˆŒØˆ�r   c                óV   — d| _         || _        |�|j                  | _        yd| _        y)z�Force the result to fail with ``exception``.

        This overrides any previous result or exception.

        .. versionadded:: 1.1.0
        Nr   )r    r"   s     r   Úforce_exceptionzResult.force_exceptionP   s+   € ð ˆŒØ#ˆŒØ5>Ð5J˜)×1Ñ1ˆ�ÐPTˆ�r   c                ó�   — d}| j                   }| j                  }|€t        t        | 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   r   r   r   r   Úwith_traceback)r    r-   r&   Útbs       r   Ú
get_resultzResult.get_result[   sC   € ð !ÐØ�o‰oˆØ�_‰_ˆØˆ;Üœ
 D§L¡LÓ1Ð1à×$Ñ$ RÓ(Ð(r   N)r!   zResultType | Noner"   úBaseException | NoneÚreturnÚNone)r8   z_ExcInfo | None)r8   r7   )r,   zCallable[[], ResultType]r8   zResult[ResultType])r!   r   r8   r9   )r"   r*   r8   r9   )r8   r   )r   r   r   r   Ú	__slots__r#   Úpropertyr'   r"   Úclassmethodr.   r0   r2   r6   r   r   r   r   r      s   „ ñð 8€Ið	Uà!ð	Uð (ð	Uð 
ó		Uð ò5ó ð5ð òó ðð ò&ó ð&óó	Uô)r   r   N)r   Ú
__future__r   Útypesr   Útypingr   r   r   r   r	   r
   Útupler%   r*   Ú_ExcInfor   Ú	Exceptionr   r   Ú_Resultr   r   r   Ú<module>rD      s‚   ðñõ #å Ý Ý Ý Ý Ý Ý ð ��mÑ$ m°X¸mÑ5LÐLÑM€Ù�\Ó"€
ô'�Iô 'ð ôN)ˆW�ZÑ ó N)ó ðN)ðd �r   