+
    :it                     J   ^ RI t ^ RIHt ^ RIt^ RIHt ^ RIHtHt ^ RIH	t	H
t
 ^ RIt ^ RIt ^ RIt]P                  ! ]RJ R4       ! R R]
4      4       t ! R	 R
]P                  4      t]R8X  d   ]P&                  ! 4        R# R#   ] d    Rt Ldi ; i  ] d    Rt Lni ; i)    N)StringIO)types)jitnjit)override_configTestCasez#please install the 'jinja2' packagec                      a  ] tR t^t o ]P
                  R 4       t]P
                  R 4       t]P
                  R 4       t]	P                  ! ]RJ R4      R 4       tRtV tR# )TestAnnotationc                d   R p\        \        P                  \        P                  34      ! V4      pVP                  VP                  ^ ,          ,          pVP
                  p\        4       pVP                  V4       VP                  4       pVP                  4        V P                  RV4       R# )z$
Ensures template.html is available
c                 >    Tp\        V 4       F  pW#,          pK  	  V# Nrange)nasis   &&  Z/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_annotations.pyfoo3TestAnnotation.test_exercise_code_path.<locals>.foo   s!    A1X H    r   N)r   r   int32	overloads
signaturestype_annotationr   html_annotategetvaluecloseassertIn)selfr   cfunccrestabufoutputs   &      r   test_exercise_code_path&TestAnnotation.test_exercise_code_path   s    	 ekk5;;/05u//23!!j
		eV$r   c                  a R oV3R lp\        \        P                  3RRR7      ! V4      pVP                  VP                  ^ ,          ,          pVP
                  p\        4       pVP                  V4       VP                  4       pVP                  4        V P                  RV4       V P                  RV4       V P                  RV4       R# )	z=
Ensures that lifted loops are handled correctly in obj mode
c                     V # r    )xs   &r   barDTestAnnotation.test_exercise_code_path_with_lifted_loop.<locals>.bar4   s    Hr   c                    < R p\        V 4       F  pW,           pK  	  \        V 4       F  pW,           pK  	  V '       d   VS! V 4      ,
          pV# )g        r   )r+   hr   kr,   s   &   r   r   DTestAnnotation.test_exercise_code_path_with_lifted_loop.<locals>.foo7   sG    A1XE 1XE AJHr   T)forceobjloopliftr,   r   
LiftedLoopN)r   r   intpr   r   r   r   r   r   r   r   )r    r   r!   r"   r#   r$   r%   r,   s   &      @r   (test_exercise_code_path_with_lifted_loop7TestAnnotation.test_exercise_code_path_with_lifted_loop.   s    		 UZZMD4@Eu//23!!j
		eV$eV$lF+r   c                   \         P                  ! RR7      R 4       p\        P                  ! R\        P                  4      p\
        P                  3pVP                  V4       VP                  V,          p\        4       pVP                  P                  V4       VP                  4       pVP                  4        V P                  VP                  R4      ^4       RpV P                  VP                  VP                  V4      4      ^4       V P                  \!        \        P"                  ! W&4      4      ^V: RV: 2R7       \
        P$                  3pVP                  V4       VP                  V,          p\        4       pVP                  P                  V4       VP                  4       pVP                  4        V P                  VP                  R4      ^4       V P                  VP                  VP                  V4      4      ^4       V P                  VP                  VP                  V4      4      ^4       V P                  \!        \        P"                  ! W&4      4      ^4       R	# )
zG
Test some format and behavior of the html annotation with lifted loop
T)r2   c                 R    \        4        ^ p\        V 4       F  pW,          pK  	  V# )r   )objectr   )r+   zr   s   &  r   udt=TestAnnotation.test_html_output_with_lifted_loop.<locals>.udtT   s&    HA1X Hr   z<td class="lifted_tag">\s*\s*<details>\s*<summary>\s*<code>\s*[0-9]+:\s*[&nbsp;]+for i in range\(x\):  # this line is tagged\s*zFunction name: udtz!with signature: {} -&gt; pyobjectz not found in )msgN)numbar   recompile	MULTILINEr   int64r   r   r   r   r   r   assertEqualcountformatlenfindallfloat64)	r    r<   re_lifted_tagsig_i64r"   r$   r%   sigfmtsig_f64s	   &        r   !test_html_output_with_lifted_loop0TestAnnotation.test_html_output_with_lifted_loopO   s   
 
D	!	 
"	 

J LL ;;.G}}W% j**3/		 	&:;Q?4fmmG&<=qARZZ>?5BFK 	 	M =="G}}W% j**3/		 	&:;Q?fmmG&<=qAfmmG&<=qARZZ>?Cr   Nz%please install the 'pygments' packagec                J   \         P                  R  4       pV! ^^4       VP                  RR7       V P                  \        4      ;_uu_ 4       pVP                  RRR7       RRR4       V P                  R\        XP                  4      4       R#   + '       g   i     L7; i)c                     W3# r   r*   )r+   ys   &&r   r   -TestAnnotation.test_pretty_print.<locals>.foo   s	    4Kr   T)prettyzshould be None)rT   fileNz$`file` must be None if `pretty=True`)r?   r   inspect_typesassertRaises
ValueErrorr   str	exception)r    r   raisess   &  r   test_pretty_print TestAnnotation.test_pretty_print   s     
	 
	 	Aq	& z**fT0@A +<&**+	- +*s   BB"	r*   )__name__
__module____qualname____firstlineno__r   run_test_in_subprocessr&   r6   rN   unittestskipIfpygmentsr\   __static_attributes____classdictcell____classdict__s   @r   r
   r
      s}      $$% %%* $$, %,@ $$:D %:Dx __X%'NO- P-r   r
   c                   D   a  ] tR t^t o R tR tR tR tR tR t	Rt
V tR# )	TestTypeAnnotationc                r    \        V4       F  w  r4W$9   g   K  Vu # 	  \        R P                  V4      4      h)zcan't find {!r})	enumeraterX   rF   )r    linespatr   lns   &&&  r   
findpatlocTestTypeAnnotation.findpatloc   s6    u%EAy & *11#677r   c                t    \        4       pVP                  V4       VP                  4       P                  4       # r   )r   rV   r   
splitlines)r    funcstrbufs   && r   getlinesTestTypeAnnotation.getlines   s-    6" ++--r   c                :   \         P                  R  4       pV! ^^4       V P                  V4      pV P                  VR4      pV P                  VR4      pV P                  VR4      pV P                  VR4      pV P	                  W54       V P	                  WF4       R# )c                     W,           # r   r*   )appleorangeberrycherrys   &&r   r   +TestTypeAnnotation.test_delete.<locals>.foo   s    ,,r   z&appleorange = arg(0, name=appleorange)z&berrycherry = arg(1, name=berrycherry)zdel appleorangezdel berrycherryN)r?   r   rw   rq   
assertLess)r    r   rn   sasbeaebs   &      r   test_deleteTestTypeAnnotation.test_delete   s    		- 
	- 	Aq	c" __U$LM__U$LM__U$56__U$56r   c                   \        R V4      ;_uu_ 4        \        R 4       p^
pV! V4      pV P                  WC4       RRR4       V P                  X4      pV P	                  VR4      pV P	                  VR4      pV P	                  VR4      pV P	                  VR4      p	V P	                  VR4      p
WgWV
3#   + '       g   i     L; i)EXTEND_VARIABLE_LIFETIMESc                 
    T pV# r   r*   )r   bs   & r   r   /TestTypeAnnotation._lifetimes_impl.<locals>.foo   s    r   Nza = arg(0, name=a)zb = azcast(value=b)zdel azdel b)r   r   rD   rw   rq   )r    extendr   r+   r   rn   r   r   cast_retdeladelbs   &&         r   _lifetimes_impl"TestTypeAnnotation._lifetimes_impl   s    8&AA  AAAQ" B c"__U$89__UG,??5/:ug.ug.xt++' BAs   (B55C	c                    V P                  ^ R7      w  rr4pV P                  W4       V P                  W%4       V P                  WC4       V P                  WS4       R# )r   r   Nr   r~   assertGreaterr    r   r   r   r   r   s   &     r   test_delete_standard_lifetimes1TestTypeAnnotation.test_delete_standard_lifetimes   sP     (,';';1';'E$!!'4*r   c                    V P                  ^R7      w  rr4pV P                  W4       V P                  W%4       V P                  WC4       V P                  WS4       R# )   r   Nr   r   s   &     r   test_delete_extended_lifetimes1TestTypeAnnotation.test_delete_extended_lifetimes   sR     (,';';1';'E$!!4*4*r   r*   N)r^   r_   r`   ra   rq   rw   r   r   r   r   rf   rg   rh   s   @r   rk   rk      s(     8.
 &,,+&+ +r   rk   __main__)r@   ior   r?   
numba.corer   r   r   numba.tests.supportr   r   rc   jinja2ImportErrorre   rd   r
   rk   r^   mainr*   r   r   <module>r      s    	     9 
 
4!FGE-X E- HE-PZ+** Z+z zMMO _  F
  Hs"   B B 	BB	B"!B"