Format: application/x-python-code
1 o
2
3 �ho � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl
4 mZ ddlm
5 Z
6 ddlmZ d d
7 � ZG dd� d�ZG d
8 d� de �ZG dd� de�ZG dd� de�ZdS )z?
9 TODO Some parts of this module are still not well documented.
10 � )�compiled)�ValueSet)�ParserTreeFilter�MergedFilter)�TreeNameDefinition)�mixed)�create_access_path)�
11 ModuleContextc C s t �| t| |��S �N)r Zcreate_from_access_pathr )�inference_state�obj� r
12 �Jc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/api/interpreter.py�_create s
13 �r c @ s e Zd Zdd� ZdS )�NamespaceObjectc C s
14 || _ d S r
15 )�__dict__)�self�dctr
16 r
17 r �__init__ s
18 zNamespaceObject.__init__N)�__name__�
19 __module__�__qualname__r r
20 r
21 r
22 r r s r c s e Zd Z� fdd�Z� ZS )�
23 MixedTreeNamec sZ t � �� }|s+| jjD ]}|�� D ]}t�dd� |�| j�D ��}|r)| S qq|S )z�
24 In IPython notebook it is typical that some parts of the code that is
25 provided was already executed. In that case if something is not properly
26 inferred, it should still infer from the variables it already knows.
27 c s s � | ]}|� � V qd S r
28 )�infer��.0�nr
29 r
30 r � <genexpr>$ s �
31 �z&MixedTreeName.infer.<locals>.<genexpr>) �superr �parent_context�mixed_values�get_filtersr Z from_sets�getZstring_name)r �inferred�compiled_value�f�values�� __class__r
32 r r s
33
34
35 ���zMixedTreeName.infer)r r r r �
36 __classcell__r
37 r
38 r'