Format: application/x-python-code
⬇ Download File (988 B)
   1  o
   2  
   3  �h{�@s(ddlmZddlmZmZdd�ZdS)�)�Path)�
   4  TYPESHED_PATH�create_stub_modulec
   5  Cs�|j}t|�}|jdksJ�z|�t�}Wn	tyYnw|�d�}|jdd�}|jdkr6|dd�}|durQ|j	|dd�}t
   6  ||||||�}	|	|j|<|	SdS)	z\
   7      This function is given a random .pyi file and should return the proper
   8      module.
   9      z.pyi��N�__init__�����F)Zprefer_stubs)�pathr�suffix�relative_tor�
  10  ValueError�with_suffix�parts�name�
  11  import_modulerZstub_module_cache)
  12  Zinference_stateZgrammarZfile_ioZimport_namesZmodule_noder	Z
  13  relative_path�restZactual_value_setZstub�r�Rc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/gradual/utils.py�load_proper_stub_modules*�
  14  
  15  �
  16  rN)�pathlibrZjedi.inference.gradual.typeshedrrrrrrr�<module>s