+
    j,ik                    v    ^ RI Ht ^ RIHtHtHtHtHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHt R.t ! R R]
4      tR# )	    )annotations)CallableIterableMappingPatternSequence)CompleteEvent	Completer
Completion)Document)AnyFormattedTextWordCompleterc                  6    ] tR t^tRtRR R lltR R ltRtR# )	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)
Nc               <    V ^8  d   QhRRRRRRRRRRR	RR
RRRRR/	# )   wordsz+Sequence[str] | Callable[[], Sequence[str]]ignore_casebooldisplay_dictz%Mapping[str, AnyFormattedText] | None	meta_dictWORDsentencematch_middlepatternzPattern[str] | NonereturnNone )formats   "J/usr/lib/python3/dist-packages/prompt_toolkit/completion/word_completer.py__annotate__WordCompleter.__annotate__"   sd      :  <	
 9    % 
    c	                	    V'       d   V'       d   Q hWn         W n        T;'       g    / V n        T;'       g    / V n        WPn        W`n        Wpn        Wn        R # )N)r   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	   &&&&&&&&&r   __init__WordCompleter.__init__"   sL     X&&
&(..B"b	 (r"   c               $    V ^8  d   QhRRRRRR/# )r   documentr   complete_eventr	   r   zIterable[Completion]r   )r   s   "r   r    r!   8   s$     & & &2?&	&r"   c              #  	  a a"   S P                   p\        V4      '       d   V! 4       pS P                  '       d   VP                  oM'VP	                  S P
                  S P                  R 7      oS P                  '       d   SP                  4       oR V V3R llpV Fe  pV! V4      '       g   K  S P                  P                  WU4      pS P                  P                  VR4      p\        V\        S4      ) VVR7      x  Kg  	  R# 5i))r   r   c                    V ^8  d   QhRRRR/# )r   wordstrr   r   r   )r   s   "r   r    3WordCompleter.get_completions.<locals>.__annotate__K   s     	; 	;s 	;t 	;r"   c                   < SP                   '       d   V P                  4       p SP                  '       d   SV 9   # V P                  S4      # )z-True when the word before the cursor matches.)r   lowerr   
startswith)r,   r$   word_before_cursors   &r   word_matches3WordCompleter.get_completions.<locals>.word_matchesK   sA    zz|   )T11'9::r"    )textstart_positiondisplaydisplay_metaN)r   callabler   text_before_cursorget_word_before_cursorr   r   r   r0   r   getr   r   len)	r$   r(   r)   r   r3   ar8   r9   r2   s	   f&&     @r   get_completionsWordCompleter.get_completions8   s      

E??GE ===!)!<!<!)!@!@YY "A " !3!9!9!;	; 	; AA++//5#~~11!R8 $'(:$;#;#!-	 	 s   6DAD*D0AD)r   r   r   r   r   r   r   r   )FNNFFFN)__name__
__module____qualname____firstlineno____doc__r%   r@   __static_attributes__r   r"   r   r   r      s    &,& &r"   N)
__future__r   typingr   r   r   r   r   prompt_toolkit.completionr	   r
   r   prompt_toolkit.documentr   prompt_toolkit.formatted_textr   __all__r   r   r"   r   <module>rN      s4    " A A J J , : 
PI Pr"   