ML i~dZddlmZddlmZddlmZddlmZddl m Z ddl m Z m Z ddlmZGd d e Zd d Zy )z(Tests for mypy incremental error output.) annotations)build) CompileError) BuildSource)Options)DataDrivenTestCase DataSuite)assert_string_arrays_equalc"eZdZdZdZdgZddZy)ErrorStreamSuiteT.zerrorstream.testct|y)N)test_error_stream)selftestcases _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/mypy/test/testerrorstream.pyrun_casezErrorStreamSuite.run_cases (#NrrreturnNone)__name__ __module__ __qualname__required_out_section base_pathfilesrrrr r sI  E$rr c xt}d|_d|_gd fd }tdddj |j g} t j |||t|jd|jd |jd y#t$r}|jgk(sJYd}~Rd}~wwxYw) zmPerform a single error streaming test case. The argument contains the description of the test case. TcP|r#jdj|yy)Nz==== Errors flushed ====)appendextend)filenamemsgsseriouslogged_messagess r flush_errorsz'test_error_stream..flush_errors!s(   " "#= >  " "4 ( rmain__main__ )sourcesoptionsr'NzInvalid output (z, line ))r#z str | Noner$z list[str]r%boolrr) rshow_tracebackhide_error_codesrjoininputrrmessagesr outputfileline)rr,r'r+er&s @rrrs iG!G#G!#O) 6:tyy/HIJG  GW<P,r@s.."$) 88$y$r