+
    „°ñj'  ã                   ó�   a € R t
0 t ^ RIt^ RIHtHt  ! R R]4      t]P                  ! RRR7      t] ^ k R R lt ! R	 R
4      t	R# )é    N)ÚOptionalÚ
NamedTuplec                   ó0   a € ] tR t^t o RtV 3R ltRtV tR# )ÚExecutionContextzÐ
Context information about the currently executing node.

Attributes:
    node_id: The ID of the currently executing node
    list_index: The index in a list being processed (for operations on batches/lists)
c                óN   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[S[,          ;R&   # ©é   Ú	prompt_idÚnode_idÚ
list_index©Ústrr   Úint)ÚformatÚ__classdict__s   "€Ú9C:\Ai_Coding\apps\studio\ComfyUI\comfy_execution\utils.pyÚ__annotate__ÚExecutionContext.__annotate__   s.   ø‡ ‚ ñ �Nñ ñ �Lñ ñ ™•Ñò ó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s   ø‡ € ñ÷ ƒ r   r   Úcurrent_executing_context)Údefaultc                ó:   € V ^8„  d   QhR\         \        ,          /# )r	   Úreturn)r   r   )r   s   "r   r   r      s   € ÷ /ñ /œxÔ(8Õ9ñ /r   c                  ó,   € \         P                  R 4      # ©N)r    Úgetr   r   r   Úget_executing_contextr'      s   € Ü$×(Ñ(¨Ó.Ð.r   c                   óF   a € ] tR t^t o RtRV 3R lR lltR tR tRtV t	R# )	ÚCurrentNodeContexta"  
Context manager for setting the current executing node context.

Sets the current_executing_context on enter and resets it on exit.

Example:
    with CurrentNodeContext(node_id="123", list_index=0):
        # Code that should run with the current node context set
        process_image()
Nc                ó<   <€ V ^8„  d   QhRS[ RS[ RS[S[,          /# r   r   )r   r   s   "€r   r   ÚCurrentNodeContext.__annotate__    s&   ø€ ÷ ñ ¡#ð ±ð ÁÉ#Åñ r   c                ó:   € \        VVVR 7      V n        RV n        R# ))r
   r   r   N)r   ÚcontextÚtoken)Úselfr
   r   r   s   &&&&r   Ú__init__ÚCurrentNodeContext.__init__    s    € Ü'Ø ØØ"ô
ˆŒð
 ˆŽ
r   c                óN   € \         P                  V P                  4      V n        V # r%   )r    Úsetr-   r.   )r/   s   &r   Ú	__enter__ÚCurrentNodeContext.__enter__(   s   € Ü.×2Ñ2°4·<±<Ó@ˆŒ
Øˆr   c                ód   € V P                   e"   \        P                  V P                   4       R # R # r%   )r.   r    Úreset)r/   Úexc_typeÚexc_valÚexc_tbs   &&&&r   Ú__exit__ÚCurrentNodeContext.__exit__,   s#   € Ø�:‰:Ò!Ü%×+Ñ+¨D¯J©JÖ7ñ "r   )r-   r.   r%   )
r   r   r   r   r   r0   r4   r;   r   r   r   s   @r   r)   r)      s#   ø‡ € ñ	÷ò ò÷8ð 8r   r)   c                ó€   € V ^8„  d   Qh/ ^ \         9   d*   \        P                  \        \        ,          ,          ;R&   # )r	   r    )Ú__conditional_annotations__ÚcontextvarsÚ
ContextVarr   r   )r   s   "r   r   r      s2   € × Ñ ÷ Rò  Rœ;×1Ñ1´(Ô;KÕ2LÕMñ  Rò r   )r>   r?   Útypingr   r   r   r@   r    r'   r)   r   )r>   s   @r   Ú<module>rB      sU   øðß Ð ß 'ô
�zô 
ð Q\×PfÒPfð  hCð  MQô  QRÐ ó  Rõ/÷8ó 8r   