class documentation

class AutoComplete(ac.AutoComplete):

View In Hierarchy

A simple auto-complete class

Method add_words Add multiple words.
Property suggestion_count The number of suggestions currently stored.
Property suggestions The current suggestions as a tuple.
def add_words(self, words: list[str]) -> int:

Add multiple words.

Parameters
words:list[str]Words to add to the auto-complete dictionary.
Returns
intThe number of words successfully added.
@property
suggestion_count: int =

The number of suggestions currently stored.

@property
suggestions: tuple =

The current suggestions as a tuple.