We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 940af53 commit 9dfd42dCopy full SHA for 9dfd42d
1 file changed
src/prompt_toolkit/completion/fuzzy_completer.py
@@ -2,7 +2,7 @@
2
3
import re
4
from collections.abc import Callable, Iterable, Sequence
5
-from typing import NamedTuple
+from typing import NamedTuple, Mapping
6
7
from prompt_toolkit.document import Document
8
from prompt_toolkit.filters import FilterOrBool, to_filter
@@ -189,7 +189,7 @@ class FuzzyWordCompleter(Completer):
189
def __init__(
190
self,
191
words: Sequence[str] | Callable[[], Sequence[str]],
192
- meta_dict: dict[str, str] | None = None,
+ meta_dict: Mapping[str, AnyFormattedText] | None = None,
193
WORD: bool = False,
194
) -> None:
195
self.words = words
0 commit comments