Format: application/x-python-code
1 o
2
3 �h9
4 � @ s� d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m
5 Z
6 d dlmZ G dd� de�Z
7 G d d
8 � d
9 e�ZG dd� de
10 �ZG d
11 d� de�ZG dd� de�ZG dd� de�ZdS )� )�ValueWrapper)�ModuleValue)�ParserTreeFilter)�StubName�StubModuleName)�TypingModuleFilterWrapper)�
12 ModuleContextc sR e Zd ZeZ� fdd�Zdd� Z� fdd�Zdd� Zd� fd
13 d� Z dd
14 � Z
15 � ZS )�StubModuleValuec s t � j|i |�� || _d S �N)�super�__init__�non_stub_value_set)�selfr
16 �args�kwargs�� __class__� �Wc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/gradual/stub_value.pyr s
17 zStubModuleValue.__init__c C s dS )NTr �r r r r �is_stub s zStubModuleValue.is_stubc sN i }| j D ]}z|j}W n ty Y qw |�|� � q|�t� �� � |S )z�
18 We have to overwrite this, because it's possible to have stubs that
19 don't have code for all the child modules. At the time of writing this
20 there are for example no stubs for `json.tool`.
21 )r
22 �sub_modules_dict�AttributeError�updater )r �names�value�methodr r r r s
23
24 �z StubModuleValue.sub_modules_dictc C s t | �� |d�gt| �� � S )N)Zparent_context�origin_scope)�
25 StubFilterZ
26 as_context�listZiter_star_filters)r r r r r �_get_stub_filters$ s �
27 �z!StubModuleValue._get_stub_filtersNc # s<