
     f                    0   d dl mZ d dlZd dlZd dlmZ d dlZd dlmZm	Z	m
Z
mZ erd dlmZ ej                            dddd	 ed
dddddd          fd eddddddd          fd edddd          fgg d          d.d%            Zd/d(Zd0d-ZdS )1    )annotationsN)TYPE_CHECKING)Resultexportmainprocess_line)Path)srcexpected) N)za regular line
Nz*package\filename.py:42:8: note: Some info
noticepackage\filename.py*      
 Some infokindfilename
start_line	start_colend_lineend_colmessagez=package/filename.py:42:1:46:3: error: Type error here [code]
errorpackage/filename.py   .       Type error here [code]z%package/module.py:87: warn: Bad code
warningpackage/module.pyW   	 Bad coder   r   r   r   )blanknormalz	note-wcolz
error-wendzwarn-lineonly)idsr
   strr   Result | NonereturnNonec                4    t          |           }||k    sJ d S )N)r   )r
   r   results      g/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/trio/_tests/tools/test_mypy_annotate.pytest_processingr/      s)    T #FX    capsyspytest.CaptureFixture[str]c                   t          ddddd d d          ddgt          d	d
ddddd          ddgt          dddd          dgi}t          |           |                                 }|j        dk    sJ |j        dk    sJ d S )Nr   r   r   r   r   r   WindowsMacr   r   r   r   r   r   Linuxr    r!   r"   r#   r$   r   a^  ::notice file=package\filename.py,line=42,col=8,title=Mypy-Windows+Mac::package\filename.py:(42:8): Some info
::error file=package/filename.py,line=42,col=1,endLine=46,endColumn=3,title=Mypy-Linux+Mac::package/filename.py:(42:1 - 46:3): Type error here [code]
::warning file=package/module.py,line=87,title=Mypy-Linux::package/module.py:87: Bad code
)r   r   
readouterrerrout)r1   resultsstds      r.   test_exportr<   =   s    + 	
 	
 	
 u*-	
 	
 	
 U(		
 	
 	

 91G4 7OOO




C7b====7	=	 	 	 	 	 	r0   tmp_pathr	   monkeypatchpytest.MonkeyPatchc                T   d}| dz  }|                                 rJ |                                5  |                    t          dt	          j        |                     t          dt          |          ddg           d d d            n# 1 swxY w Y   |                                }|j	        dk    sJ |j
        |k    sJ |                                 sJ t          dt          |          g           |                                }|j	        dk    sJ |j
        dk    sJ d S )	NzMypy begun
trio/core.py:15: error: Bad types here [misc]
trio/package/module.py:48:4:56:18: warn: Missing annotations  [no-untyped-def]
Found 3 errors in 29 files
zdump.datstdinz
--dumpfilez
--platformSomePlatformr   a  ::error file=trio/core.py,line=15,title=Mypy-SomePlatform::trio/core.py:15: Bad types here [misc]
::warning file=trio/package/module.py,line=48,col=4,endLine=56,endColumn=18,title=Mypy-SomePlatform::trio/package/module.py:(48:4 - 56:18): Missing annotations  [no-untyped-def]
)existscontextsetattrsysioStringIOr   r(   r7   r8   r9   )r=   r>   r1   inp_textresult_filer;   s         r.   test_endtoendrK   g   s   
H Z'K!!#####					 M MC"+h*?*?@@@lC,,lNKLLLM M M M M M M M M M M M M M M
 



C7b====7h,K((	)***




C7b====7	*     s   ABBB)r
   r(   r   r)   r*   r+   )r1   r2   r*   r+   )r=   r	   r>   r?   r1   r2   r*   r+   )
__future__r   rG   rF   typingr   pytesttrio._tools.mypy_annotater   r   r   r   pathlibr	   markparametrizer/   r<   rK    r0   r.   <module>rT      s   " " " " " " 				 



              H H H H H H H H H H H H  ":F/$  	
 MF.1  	
 5F,#	  	
7$J 	HGGO  ( (R  S( (R
' ' ' 'T! ! ! ! ! !r0   