Skip to content

InquirerAutocomplete

Bases: InquirerWidget

An autocomplete widget that allows the user to type a query and select from a list of matching options.

__init__(message, completions, name=None, mandatory=False)

Parameters:

Name Type Description Default
message str

The prompt message to display.

required
completions list[str]

A list of completion options to present to the user.

required
name str | None

The name of the input field.

None
mandatory bool

Whether a response is mandatory.

False