Skip to content

Commit

Permalink
Update word_completer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr authored Jun 16, 2024
1 parent e81d17e commit 97ddcf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompt_toolkit/completion/word_completer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Callable, Iterable, Mapping, Pattern
from typing import Callable, Iterable, Mapping, Pattern, Sequence

from prompt_toolkit.completion import CompleteEvent, Completer, Completion
from prompt_toolkit.document import Document
Expand Down Expand Up @@ -33,7 +33,7 @@ class WordCompleter(Completer):

def __init__(
self,
words: list[str] | Callable[[], list[str]],
words: Sequence[str] | Callable[[], Sequence[str]],
ignore_case: bool = False,
display_dict: Mapping[str, AnyFormattedText] | None = None,
meta_dict: Mapping[str, AnyFormattedText] | None = None,
Expand Down

0 comments on commit 97ddcf3

Please sign in to comment.