Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/api/__pycache__/strings.cpython-39.pyc
Ðазад
a j�h � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z e � ZG dd� de�Zd d � Z dd� Zd d� Zdd� Zdd� Zdd� Zddd�ZdS )ap This module is here for string completions. This means mostly stuff where strings are returned, like `foo = dict(bar=3); foo["ba` would complete to `"bar"]`. It however does the same for numbers. The difference between string completions and other completions is mostly that this module doesn't return defined names in a module, but pretty much an arbitrary string. � N)�AbstractArbitraryName)�infer_call_of_leaf)� Completion)�cut_value_at_positionc @ s e Zd ZdZdZdS )� StringName�stringFN)�__name__� __module__�__qualname__Zapi_typeZ is_value_name� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/api/strings.pyr s r c C s� |}|dkr|� � }d}|r,t|||dd�}|dkr�|d u rN||urNt||�}| �|�}|� � } } | dv rr| j} | jdv r�t|| �}tt| j ||d u r�dn|||d��S g S )N�[� T)� invert_result)�)�]�})Zatom�trailer�name)�fuzzy) Zget_previous_leaf�get_quote_endingr Zcreate_context�parent�typer �list�_completions_for_dicts�inference_state)Zmodule_context� code_lines�leaf�positionr r Zbracket_leaf� cut_end_quote�contextZbefore_nodeZbefore_bracket_leaf�valuesr r r � complete_dict s. �r"