Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/completion/__pycache__/word_completer.cpython-39.pyc
Ðазад
a d�hk � @ sn d dl mZ d dlmZmZmZmZmZ d dlm Z m Z mZ d dlm Z d dlmZ dgZG dd� de �ZdS ) � )�annotations)�Callable�Iterable�Mapping�Pattern�Sequence)� CompleteEvent� Completer� Completion)�Document)�AnyFormattedText� WordCompleterc @ sB e Zd ZdZddddddddddd � d d�Zdd dd�dd�ZdS )r a� Simple autocompletion on a list of words. :param words: List of words or callable that returns a list of words. :param ignore_case: If True, case-insensitive completion. :param meta_dict: Optional dict mapping words to their meta-text. (This should map strings to strings or formatted text.) :param WORD: When True, use WORD characters. :param sentence: When True, don't complete by comparing the word before the cursor, but by comparing all the text before the cursor. In this case, the list of words is just a list of strings, where each string can contain spaces. (Can not be used together with the WORD option.) :param match_middle: When True, match not only the start, but also in the middle of the word. :param pattern: Optional compiled regex for finding the word before the cursor to complete. When given, use this regex pattern instead of default one (see document._FIND_WORD_RE) FNz+Sequence[str] | Callable[[], Sequence[str]]�boolz%Mapping[str, AnyFormattedText] | NonezPattern[str] | None�None) �words�ignore_case�display_dict� meta_dict�WORD�sentence�match_middle�pattern�returnc C sH |r|rJ �|| _ || _|pi | _|p(i | _|| _|| _|| _|| _d S )N)r r r r r r r r ) �selfr r r r r r r 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/word_completer.py�__init__"