summaryrefslogtreecommitdiffstats
path: root/src/prompt_toolkit/auto_suggest.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/prompt_toolkit/auto_suggest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prompt_toolkit/auto_suggest.py b/src/prompt_toolkit/auto_suggest.py
index 98cb4dd..73213ba 100644
--- a/src/prompt_toolkit/auto_suggest.py
+++ b/src/prompt_toolkit/auto_suggest.py
@@ -11,6 +11,7 @@ because they take too much time, and could potentially block the event loop,
then wrap the :class:`.AutoSuggest` instance into a
:class:`.ThreadedAutoSuggest`.
"""
+
from __future__ import annotations
from abc import ABCMeta, abstractmethod
@@ -46,7 +47,7 @@ class Suggestion:
self.text = text
def __repr__(self) -> str:
- return "Suggestion(%s)" % self.text
+ return f"Suggestion({self.text})"
class AutoSuggest(metaclass=ABCMeta):