
    vKg8                        S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SKJ	r	  S SK
r
S SKrS SKrS SKJr  \ " S S\	5      5       rS	S jrS
S jrg)    )annotationsN)InteractiveConsole)finalc                  F   ^  \ rS rSr% S\S'   SSU 4S jjjrS	S jrSrU =r$ )
TrioInteractiveConsole   dict[str, object]localsc                   > [         TU ]  US9  U R                  R                  =R                  [
        R                  -  sl        g )N)r
   )super__init__compilecompilerflagsastPyCF_ALLOW_TOP_LEVEL_AWAIT)selfrepl_locals	__class__s     J/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/trio/_repl.pyr   TrioInteractiveConsole.__init__   s4    ,##s'E'EE#    c                F   [         R                  " XR                  5      n[        R                  " U5      (       a/  [
        R                  R                  [        R                  U5      nO.[
        R                  R                  [        R                  U5      n[        U[        R                  5      (       a  [        UR                  [        5      (       a  UR                  e[!        UR                  5      UR                  s["        l        ["        l        UR                  R(                  ["        l        ["        R,                  S:  a  UR                  ["        l        ["        R0                  " ["        R$                  ["        R&                  ["        R*                  5        g g )N)      )typesFunctionTyper
   inspectiscoroutinefunctiontriofrom_threadrunoutcomeacapturerun_synccapture
isinstanceErrorerror
SystemExittypesys	last_type
last_value__traceback__last_tracebackversion_infolast_exc
excepthook)r   codefuncresults       r   runcodeTrioInteractiveConsole.runcode   s    !!$4&&t,,%%))'*:*:DAF%%..wEFfgmm,, &,,
33ll"
 15V\\0BFLL-s~%+\\%?%?"##w.#)<<CL s}}cnnc>P>PQ) -r    )N)r   zdict[str, object] | None)r4   ztypes.CodeTypereturnNone)	__name__
__module____qualname____firstlineno____annotations__r   r7   __static_attributes____classcell__)r   s   @r   r   r      s#    
 F FR Rr   r   c           
     V  #    S[         R                   S[         R                   S[        [         SS5       S3n [        R
                  R                  U R                  U5      I S h  vN   [        R                  " SS[        S	9  g  N! [        R                  " SS[        S	9  f = f7f)
Nz
trio REPL z on zv
Use "await" directly instead of "trio.run()".
Type "help", "copyright", "credits" or "license" for more information.
ps1z>>> zimport trioignorez ^coroutine .* was never awaited$)messagecategory)r,   versionplatformgetattrr    	to_threadr%   interactwarningsfilterwarningsRuntimeWarning)consolebanners     r   run_replrR   :   s     
S[[Mcll^ 4" 3v&
'{		4 
nn%%g&6&6???7#	
 	@7#	
s.   8B)-B
 (B)B
 -B)B
 
B&&B)c                    [         R                  " [        5         SS KnS S S 5        S[        0nS H	  nX   X#'   M     [        U5      n[        R                  " [        U5        g ! , (       d  f       NL= f)Nr   r    >   __file__r<   __spec__
__loader____package____builtins__)
contextlibsuppressImportErrorreadliner    r   r"   rR   )original_localsr\   r   keyrP   s        r   mainr_   L   s_    			[	) 
* '-d^K +/ %[1GHHXw 
*	)s   A&&
A4)rP   r   r:   r;   )r]   r	   r:   r;   )
__future__r   r   rY   r   r,   r   rM   r4   r   r#   r    trio.lowlevel
trio._utilr   r   rR   r_   r9   r   r   <module>rc      sS    " 
   
   #     $R/ $R $RN
$ r   