Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/__pycache__/star_args.cpython-39.pyc
Ðазад
a j�h� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z dd� Zd d � Zdd� Z d d� Zeddd��ZG dd� de�ZdS )a This module is responsible for inferring *args and **kwargs for signatures. This means for example in this case:: def foo(a, b, c): ... def bar(*args): return foo(1, *args) The signature here for bar should be `bar(b, c)` instead of bar(*args). � )� Parameter)�tree)�to_list)�ParamNameWrapper)�is_big_annoying_libraryc c s ddl m} ddlm} | j}t�| jdd�}|�� }|jd j }|jd j }|�� �| j �D ]�}||j krx|k r^n q^|j} | jdkr^| jd d| j kr^|| d �} | d ur^|�| �}t| ||�r^t|| �}|j|j|| jd | d�} |D ]}|| fV q�q^d S )Nr )�search_ancestor)� TreeArgumentsZfuncdefZlambdef����argument�*�trailer� )�contextZ argument_noder )Zparso.python.treer Zjedi.inference.argumentsr �parent_contextr Z tree_nameZ get_root_node�children� start_pos�end_posZget_used_names�get�string_name�parent�type� star_countZcreate_context�_goes_to_param_name� _to_callablesZ create_cachedZinference_state)� param_namer r Zexecution_contextZ function_nodeZmodule_node�start�end�namer r r �values�args�c� r! ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/inference/star_args.py�_iter_nodes_for_param s4 � �r# c s>