Ë
    pPêj¡  ã                  ó~   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZmZ ddlmZ  G d	„ d
e«      Zdd„Zy)z(Tests for mypy incremental error output.é    )Úannotations)Úbuild)ÚCompileError)ÚBuildSource)ÚOptions)ÚDataDrivenTestCaseÚ	DataSuite)Úassert_string_arrays_equalc                  ó"   — e Zd ZdZdZdgZdd„Zy)ÚErrorStreamSuiteTú.zerrorstream.testc                ó   — t        |«       y )N)Útest_error_stream)ÚselfÚtestcases     ú^/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/mypy/test/testerrorstream.pyÚrun_casezErrorStreamSuite.run_case   s
   € Ü˜(Õ#ó    N©r   r   ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Úrequired_out_sectionÚ	base_pathÚfilesr   © r   r   r   r      s   „ ØÐØ€IØÐ €Eô$r   r   c           	     óx  ‡— t        «       }d|_        d|_        g Šdˆfd„}t        dddj	                  | j
                  «      «      g}	 t        j                  |||¬«       t        | j                  ‰d| j                  › d	| j                  › d
�«       y# t        $ r}|j                  g k(  sJ ‚Y d}~ŒRd}~ww xY w)zmPerform a single error streaming test case.

    The argument contains the description of the test case.
    Tc                óP   •— |r#‰j                  d«       ‰j                  |«       y y )Nz==== Errors flushed ====)ÚappendÚextend)ÚfilenameÚmsgsÚseriousÚlogged_messagess      €r   Úflush_errorsz'test_error_stream.<locals>.flush_errors!   s(   ø€ ÙØ×"Ñ"Ð#=Ô>Ø×"Ñ" 4Õ(ð r   ÚmainÚ__main__ú
)ÚsourcesÚoptionsr'   NzInvalid output (z, line ú))r#   z
str | Noner$   z	list[str]r%   Úboolr   r   )r   Úshow_tracebackÚhide_error_codesr   ÚjoinÚinputr   r   Úmessagesr
   ÚoutputÚfileÚline)r   r,   r'   r+   Úer&   s        @r   r   r      s±   ø€ ô
 ‹i€GØ!€GÔØ#€GÔà!#€Oõ)ô
 ˜6 :¨t¯y©y¸¿¹Ó/HÓIÐJ€Gð Ü�‰˜G¨WÀ<ÕPô Ø�‰˜Ð,<¸X¿]¹]¸OÈ7ÐS[×S`ÑS`ÐRaÐabÐ*cõøô ò  Ø�z‰z˜RÒÐÕûð ús   Á
B Â	B9ÂB4Â4B9Nr   )Ú__doc__Ú
__future__r   Úmypyr   Úmypy.errorsr   Úmypy.modulefinderr   Úmypy.optionsr   Úmypy.test.datar   r	   Úmypy.test.helpersr
   r   r   r   r   r   ú<module>r@      s.   ðÙ .å "å Ý $Ý )Ý  ß 8Ý 8ô$�yô $ôr   