Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/gradual/__pycache__/stub_value.cpython-39.pyc
Ðазад
a j�h9 � @ s� d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m Z d dlmZ G dd� de�Z G d d � d e�ZG dd� de �ZG d d� de�ZG dd� de�ZG dd� de�ZdS )� )�ValueWrapper)�ModuleValue)�ParserTreeFilter)�StubName�StubModuleName)�TypingModuleFilterWrapper)� ModuleContextc sR e Zd ZeZ� fdd�Zdd� Z� fdd�Zdd� Zd� fd d� Z dd � Z � ZS )�StubModuleValuec s t � j|i |�� || _d S �N)�super�__init__�non_stub_value_set)�selfr �args�kwargs�� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/inference/gradual/stub_value.pyr s 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 q 0 |�|� � q |�t� �� � |S )z� We have to overwrite this, because it's possible to have stubs that don't have code for all the child modules. At the time of writing this there are for example no stubs for `json.tool`. )r �sub_modules_dict�AttributeError�updater )r �names�value�methodr r r r s z StubModuleValue.sub_modules_dictc C s t | �� |d�gt| �� � S )N)Zparent_context�origin_scope)� StubFilterZ as_context�listZiter_star_filters)r r r r r �_get_stub_filters$ s � �z!StubModuleValue._get_stub_filtersNc # s: t � �|�}t|d � | j|d�}|E d H |E d H d S �N)r )r �get_filters�nextr )r r �filtersZstub_filtersr r r r"