summaryrefslogtreecommitdiffstats
path: root/examples/prompts/auto-completion/nested-autocompletion.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/prompts/auto-completion/nested-autocompletion.py')
-rwxr-xr-xexamples/prompts/auto-completion/nested-autocompletion.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/auto-completion/nested-autocompletion.py b/examples/prompts/auto-completion/nested-autocompletion.py
index cd85b8c..e56e82e 100755
--- a/examples/prompts/auto-completion/nested-autocompletion.py
+++ b/examples/prompts/auto-completion/nested-autocompletion.py
@@ -2,6 +2,7 @@
"""
Example of nested autocompletion.
"""
+
from prompt_toolkit import prompt
from prompt_toolkit.completion import NestedCompleter
@@ -15,7 +16,7 @@ completer = NestedCompleter.from_nested_dict(
def main():
text = prompt("Type a command: ", completer=completer)
- print("You said: %s" % text)
+ print(f"You said: {text}")
if __name__ == "__main__":