+
    -jY                      a  0 t $ ^ RIHt ^ RIt^ RIHt ^ RIt^ RIt^ RIt^ RI	t	^ RI
Ht ^ RI
Ht ^ RIt^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ RIt]'       d    ]P.                  R8  d   ^ R
IHt  ! R R]4      t]! 4       tR]R&   R R ltR R ltR R ltR R lt ]PB                  ! RR7      R R l4       t"]PB                  ! RR7      R R l4       t#]PB                  ! RR7      R R l4       t$R# )     )annotationsN)Callable)
NamedTuple)TYPE_CHECKING)Config)Item)StashKey)tracemalloc_message)ExceptionGroupc                  6    ] tR t^t$ R]R&   R]R&   R]R&   RtR# )ThreadExceptionMetastrmsg	cause_msgzBaseException | None	exc_value N)__name__
__module____qualname____firstlineno____annotations____static_attributes__r       l/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/_pytest/threadexception.pyr   r      s    	HN##r   r   z@StashKey[collections.deque[ThreadExceptionMeta | BaseException]]thread_exceptionsc                    V ^8  d   QhRRRR/#    configr   returnNoner   )formats   "r   __annotate__r#   &   s     $% $%V $% $%r   c                   V P                   \        ,          P                  p. pR pR p   V! 4       p\	        T\
        4      '       d%   \        R4      pY4n        TP                  T4       KC  TP                  p \        P                  ! \        P                  ! T4      4       K|    \         d     Mii ; i  \        P                   dN   pTP                  e$   TP                  3Tn        TP                  Tn        TP                  T4        R p?K  R p?ii ; i\#        T4      ^8X  d
   T^ ,          hT'       d   \%        RT4      h ???R #   ???i ; i)Nz"Failed to process thread exceptionz"multiple thread exception warnings)stashr   pop
IndexError
isinstanceBaseExceptionRuntimeError	__cause__appendr   warningswarnpytest%PytestUnhandledThreadExceptionWarningr   r   argslenr   )r   pop_thread_exceptionerrorsmeta
hook_errorr   es   &      r   collect_thread_exceptionr8   &   s-   !<<(9:>>PRFDJ%+- $..)*NO
'+$j)((C
!fJJ3OP   ?? !>>- #nn.AF"&..AKa  ! v;!)O !EvNN  D*FD*s_   E B% AE 9*B6 #E %B30E 2B33E 6DADE D#E <E Ec               $    V ^8  d   QhRRRRRR/# )r   r   r   	prev_hookz,Callable[[threading.ExceptHookArgs], object]r    r!   r   )r"   s   "r   r#   r#   M   s$     , ,,"N,	,r   c                      \        V 4       V\        n         V P                  \         R #   T\        n        i ; i  T P                  \         i ; iN)r8   	threading
excepthookr%   r   r   r:   s   $$r   cleanupr@   M   sE    	,	- %V,#,I LL*+ $-I LL*+s   - = := Ac               $    V ^8  d   QhRRRRRR/# )r   r1   zthreading.ExceptHookArgsr,   z7Callable[[ThreadExceptionMeta | BaseException], object]r    r!   r   )r"   s   "r   r#   r#   \   s)     % %
"% D	%
 
%r   c                  V P                   f   RMV P                   P                  pRV 2pRRP                  \        P                  ! V P
                  V P                  V P                  4      4      ,           pR\        V P                   4      ,           pW4,           V,           pW5,           pV! \        VVV P                  R7      4       R #   \         d   pT! T4       h R p?ii ; i)Nz	<unknown>zException in thread z

 
)r   r   r   )threadnamejoin	tracebackformat_exceptionexc_typer   exc_tracebackr
   r   r)   )	r1   r,   thread_namesummarytraceback_messagetracemalloc_tbr   r   r7   s	   "$       r   thread_exception_hookrP   \   s     &*[[%8kdkk>N>N(6"RWW&&""&
 
  3DKK @@)N:,	#..		
  q	
 	s   CC C%	C  C%c                    V ^8  d   QhRRRR/# r   r   )r"   s   "r   r#   r#      s     Y YV Y Yr   c                (   \         P                  p\        P                  ! 4       pW P                  \
        &   V P                  \        P                  ! \        WR 7      4       \        P                  ! \        VP                  R7      \         n        R# )r?   )r,   N)r=   r>   collectionsdequer%   r   add_cleanup	functoolspartialr@   rP   r,   )r   r:   rT   s   &  r   pytest_configurerX      s]    $$IDODUDUDWE&+LL"#
y((UV$,,-B5<<XIr   T)trylastc                    V ^8  d   QhRRRR/# r   itemr   r    r!   r   )r"   s   "r   r#   r#      s     * *t * *r   c                0    \        V P                  4       R # r<   r8   r   r\   s   &r   pytest_runtest_setupr`          T[[)r   c                    V ^8  d   QhRRRR/# r[   r   )r"   s   "r   r#   r#      s     * *d *t *r   c                0    \        V P                  4       R # r<   r^   r_   s   &r   pytest_runtest_callrd      ra   r   c                    V ^8  d   QhRRRR/# r[   r   )r"   s   "r   r#   r#      s     * *$ *4 *r   c                0    \        V P                  4       R # r<   r^   r_   s   &r   pytest_runtest_teardownrg      ra   r   )      )%__conditional_annotations__
__future__r   rS   collections.abcr   rV   sysr=   rH   typingr   r   r-   _pytest.configr   _pytest.nodesr   _pytest.stashr	   _pytest.tracemallocr
   r/   version_infoexceptiongroupr   r   r   r   r8   r@   rP   rX   hookimplr`   rd   rg   )rj   s   @r   <module>rv      s    " "  $  
       !  " 3  g-$* $ J S 
$%N,%PY * * * * * *r   