Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/__pycache__/dynamic_params.cpython-39.pyc
Ðазад
a j�h� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl mZ ddlm Z dd lmZ dd lmZ ddlmZmZ ddlmZ dd lmZ dZdd� Zejedd� ��Zedd�edd� ��Zdd� Zdd� Zdd� Z dS )a� One of the really important features of |jedi| is to have an option to understand code like this:: def foo(bar): bar. # completion here foo(1) There's no doubt wheter bar is an ``int`` or not, but if there's also a call like ``foo('str')``, what would happen? Well, we'll just show both. Because that's what a human would expect. It works as follows: - |Jedi| sees a param - search for function calls named ``foo`` - execute these calls and check the input. � )�settings)�debug)�get_parent_scope)�inference_state_method_cache)� TreeArguments)�get_executed_param_names)�is_stdlib_path)�to_list)�instance)�ValueSet� NO_VALUES)�#get_module_contexts_containing_name)� recursion� c s � fdd�}|S )Nc s� | j }t�|| j��`}|rb| jd7 _z(� | |�W | jd8 _W d � S | jd8 _0 tW d � S 1 sz0 Y d S )N� )�inference_stater Zexecution_allowed� tree_node�dynamic_params_depthr )�function_value�param_index�inf�allowed��func� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/inference/dynamic_params.py�wrapper&