Format: application/x-python-code
1 o
2
3 �h+G � @ s2 d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
4 Z
5 ddlmZ ddl
6 mZ dd lmZ dd
7 lmZ ddlmZ e� ZG dd
8 � d
9 e�ZG dd� d�ZG dd� de�Zd&dd�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� d�Z d d!� Z!G d"d#� d#�Z"e"g �Z#d$d%� Z$dS )'a4
10 Values are the "values" that Python would return. However Values are at the
11 same time also the "values" that a user is currently sitting in.
12
13 A ValueSet is typically used to specify the return of a function or any other
14 static analysis operation. In jedi there are always multiple returns and not
15 just one.
16 � )�reduce)�add)�zip_longest)�Name)�debug)�clean_scope_docstring��SimpleGetItemNotFound)�
17 safe_property)�%inference_state_as_method_param_cache)�memoize_methodc @ s e Zd ZdS )�HasNoContextN)�__name__�
18 __module__�__qualname__� r r �Oc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/base_value.pyr
19 s r
20 c @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d
21 � Zd"d
22 d�Zdd� Z d#dd�Z
23 d$dd�Zdd� Zdd� Z
24 d"dd�Zdd� Zdd� Zed d!� �ZdS )%�HelperValueMixinc C s. | }|j d u r|�� S |j d u r|S |j }q�N)�parent_context�
25 as_context)�self�valuer r r �get_root_context s
26
27 �z!HelperValueMixin.get_root_contextc C s | j j| |d�S )N�� arguments��inference_state�execute�r r r r r r ( � zHelperValueMixin.executec G s, ddl m} |dd� |D ��}| j�| |�S )Nr )�ValuesArgumentsc S s g | ]}t |g��qS r ��ValueSet��.0r r r r �
28 <listcomp>- s z8HelperValueMixin.execute_with_values.<locals>.<listcomp>)Zjedi.inference.argumentsr! r r )r Z
29 value_listr! r r r r �execute_with_values+ s z$HelperValueMixin.execute_with_valuesc C s | � � S r �r'