Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/completion/__pycache__/nested.cpython-39.pyc
Ðазад
a d�h � @ s� d Z ddlmZ ddlmZmZmZmZmZ ddl m Z mZmZ ddl mZ ddlmZ dgZeeeeee def f ZG d d� de�ZdS ) zA Nestedcompleter for completion of hierarchical data structures. � )�annotations)�Any�Iterable�Mapping�Set�Union)� CompleteEvent� Completer� Completion)� WordCompleter)�Document�NestedCompleterNc @ sX e Zd ZdZddddd�dd�Zd d �dd�Zed d d�dd��Zdddd�dd�ZdS )r a� Completer which wraps around several other completers, and calls any the one that corresponds with the first word of the input. By combining multiple `NestedCompleter` instances, we can achieve multiple hierarchical levels of autocompletion. This is useful when `WordCompleter` is not sufficient. If you need multiple levels, check out the `from_nested_dict` classmethod. Tzdict[str, Completer | None]�bool�None)�options�ignore_case�returnc C s || _ || _d S )N�r r )�selfr r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/completion/nested.py�__init__ s zNestedCompleter.__init__�str)r c C s d| j �d| j�d�S )NzNestedCompleter(z, ignore_case=�)r )r r r r �__repr__% s zNestedCompleter.__repr__� NestedDict)�datar c C s� i }|� � D ]j\}}t|t�r(|||<