|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/prompt_toolkit/completion/__pycache__/ |
a
��Sh � @ 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 �J/usr/local/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(|||<