Format: application/x-python-code
1 o
2
3 �h*Z � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
4 Z
5 ddlmZ dd l
6 mZ dd
7 lmZ ddlmZ ddlmZ dd
8 lmZ ddlmZ ddlmZ ddlmZmZ ddlmZmZ ddlmZm Z m!Z! ddl"m#Z# ddl$m%Z% G dd� d�Z&eed�dd� �Z'eg d�dd� �Z(dd� Z)dd� Z*d d!� Z+G d"d#� d#�Z, $d6d%d&�Z-e%�.� ed'd(� ��Z/ )d7d*d+�Z0d8d,d-�Z1d8d.d/�Z2d0d1� Z3d2d3� Z4ed$fd4d5�Z5dS )9a�
9 :mod:`jedi.inference.imports` is here to resolve import statements and return
10 the modules/classes/functions/whatever, which they stand for. However there's
11 not any actual importing done. This module is about finding modules in the
12 filesystem. This can be quite tricky sometimes, because Python imports are not
13 always that simple.
14
15 This module also supports import autocompletion, which means to complete
16 statements like ``from datetim`` (cursor at the end would return ``datetime``).
17 � N)�Path)�tree)�search_ancestor)�debug)�settings)�FolderIO)�get_cached_code_lines)�sys_path)�helpers)�compiled)�analysis)�unite)�inference_state_method_cache)�
18 ImportName�
19 SubModuleName)�ValueSet� NO_VALUES)�import_module_decorator�create_stub_module�parse_stub_module)�ImplicitNSInfo)�plugin_managerc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�ModuleCachec C s
20 i | _ d S �N��_name_cache��self� r �Lc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/imports.py�__init__$ s
21 zModuleCache.__init__c C s |d ur|| j |<