← Back
Editing: base_value.cpython-311.pyc
� p�{c+G � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZ dd lmZ ddlmZ e� � Z G d� d e� � Z G d� d� � Z G d� de� � Zd#d�Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d� � Z d� Z! G d � d!� � Z" e"g � � Z#d"� Z$dS )$a4 Values are the "values" that Python would return. However Values are at the same time also the "values" that a user is currently sitting in. A ValueSet is typically used to specify the return of a function or any other static analysis operation. In jedi there are always multiple returns and not just one. � )�reduce)�add)�zip_longest)�Name)�debug)�clean_scope_docstring��SimpleGetItemNotFound)� safe_property)�%inference_state_as_method_param_cache)�memoize_methodc � � e Zd ZdS )�HasNoContextN)�__name__� __module__�__qualname__� � �;/usr/lib/python3/dist-packages/jedi/inference/base_value.pyr r s � � � � � ��Dr r c � � e Zd Zd� Zd� Zd� Zd� Zd� Zdd�Zd � Z dd�Z dd�Zd � Zd� Z dd�Zd� Zd� Zed� � � ZdS )�HelperValueMixinc �` � | }|j �|� � � S |j �|S |j }��N)�parent_context� as_context)�self�values r �get_root_contextz!HelperValueMixin.get_root_context sB � �����'��#�#�%�%�%� )��#�+����(�E� )r c �: � | j � | |�� � S )N)� arguments��inference_state�execute�r r s r r# zHelperValueMixin.execute( s � ��#�+�+�D�I�+�F�F�Fr c �n � ddl m} |d� |D � � � � }| j � | |� � S )Nr )�ValuesArgumentsc �. � g | ]}t |g� � ��S r ��ValueSet)�.0r s r � <listcomp>z8HelperValueMixin.execute_with_values.<locals>.<listcomp>- s"