
    ch
                    H   S SK Jr  S SKrS SKrS SKJrJrJrJrJ	r	  \(       a)  S SK
Jr  S SKJr  \R                  S:  a  S SKJr  OS SKJr   " S S	5      r\	  SS
S.         SS jjj5       r\	  SS
S.         SS jjj5       r  SSS.         SS jjjrg)    )annotationsN)TYPE_CHECKINGAnyCallableLiteraloverload)PathLike)ReadableBuffer)      )Selfc                  @    \ rS rSrSrS	S jrS
S jrSS jrSS jrSr	g)_CatchDisplay   z+Class to temporarily catch sys.displayhook.c                    S U l         g Noutputselfs    hC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\altair/utils/execeval.py__init___CatchDisplay.__init__   s	    "&    c                F    [         R                  U l        U [         l        U $ r   )sysdisplayhookold_hookr   s    r   	__enter___CatchDisplay.__enter__   s    14r   c                .    U R                   [        l        g)NF)r   r   r   )r   typevalue	tracebacks       r   __exit___CatchDisplay.__exit__   s    --r   c                    Xl         g r   r   )r   r   s     r   __call___CatchDisplay.__call__"   s    r   )r   r   N)returnNone)r*   r   )r*   Literal[False])r   r   r*   r+   )
__name__
__module____qualname____firstlineno____doc__r   r   r%   r(   __static_attributes__ r   r   r   r      s    5'

r   r   .)strictc                   g r   r3   code	namespacefilenamer4   s       r   
eval_blockr:   &   s     r   c                   g r   r3   r6   s       r   r:   r:   .   s     r   Fc               n   [         R                  " U SSS9nUc  0 n[        5       n[        UR                  S   [         R
                  5      (       a  UR                  SS UR                  SS pvOUR                  / pvU H/  n[        [         R                  " U// 5      USS9n	[        X5        M1     U   U H.  n[        [         R                  " U/5      USS9n	[        X5        M0     SSS5        U(       a"  UR                  n
U
c  SU
< 3n[        U5      eU
$ UR                  $ ! , (       d  f       NC= f)z
Execute a multi-line block of code in the given namespace.

If the final statement in the code is an expression, return
the result of the expression.

If ``strict``, raise a ``TypeError`` when the return value would be ``None``.
z<ast>exec)r9   modeNsinglez"Expected a non-None value but got )astparser   
isinstancebodyExprcompileModuler=   Interactiver   	TypeError)r7   r8   r9   r4   treecatch_displayto_execto_evalnodecompiledr   msgs               r   r:   r:   6   s    99TG&9D	!OM$))B-**99Sb>499RS>99b3::tfb1H6RX!  
D'(H %	  
 %%>6vjACC. M### 
s   45D&&
D4)..)
r7   	str | Anyr8   dict[str, Any] | Noner9   $str | ReadableBuffer | PathLike[Any]r4   r,   r*   
Any | None)
r7   rQ   r8   rR   r9   rS   r4   zLiteral[True]r*   r   )Nz<string>)
r7   rQ   r8   rR   r9   rS   r4   boolr*   rT   )
__future__r   rA   r   typingr   r   r   r   r   osr	   	_typeshedr
   version_infor   typing_extensionsr   r:   r3   r   r   <module>r\      s(   " 
 
 B B(
7"* ( 
 (+58
 !
$ 3
   
 
 (+58
  
$ 3
  	 
 (,5?,$
 ,$
,$$,$ 3,$
 ,$ ,$r   