Skip to content

Completion

🛈 DocStrings

A completion candidate.

Source code in src/acptui/completion.py
@dataclass(frozen=True)
class Completion:
    """A completion candidate."""

    label: str
    """Text shown in the list."""

    insert: str
    """Text that replaces the token."""

    detail: str = ""
    """Description shown next to the label."""

detail class-attribute instance-attribute

detail: str = ''

Description shown next to the label.

insert instance-attribute

insert: str

Text that replaces the token.

label instance-attribute

label: str

Text shown in the list.

:fa-brands-github: Show source on GitHub