Your IP : 216.73.216.196


Current Path : /opt/alt/python37/lib/python3.7/site-packages/astroid/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/astroid/__pycache__/_ast.cpython-37.opt-1.pyc

B

��\��@s�ddlZddlmZddlmZddlmZddlZdZZ	yddl
mZ	ddlm
ZWnek
rlYnXedddg�Zded	�d
d�Zdeed�d
d�Zeeed�dd�ZdS)�N)�
namedtuple)�partial)�Optional�FunctionType�argtypes�returnsF)�parse_python_twocCs|r
t}nt}|ptS)N)�_ast_py2�_ast_py3�ast)rZ
parser_module�r�=/opt/alt/python37/lib/python3.7/site-packages/astroid/_ast.py�_get_parser_modulesr)�stringrcCs0t|d�}|j}tr(|s(t|tjjd�}||�S)N)r)Zfeature_version)r�parser
r�sys�version_info�minor)rrZparse_moduleZ
parse_funcrrr
�_parses

r)�type_comment�returncCs*tdkrdSt�|dd�}t|j|jd�S)z:Given a correct type comment, obtain a FunctionType objectNz<type_comment>�	func_type)rr)r
rrrr)rrrrr
�parse_function_type_comment"sr)F)F)r�collectionsr�	functoolsr�typingrrr	r
Ztyped_ast.ast3Zast3Ztyped_ast.ast27Zast27�ImportErrorr�boolr�strrrrrrr
�<module>s