Skip to content

Commit 3c0290d

Browse files
Code style fixes for compatibility with latest Ruff.
1 parent 85079ad commit 3c0290d

File tree

206 files changed

+346
-250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+346
-250
lines changed

examples/dialogs/button_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of button dialog window.
44
"""
5+
56
from prompt_toolkit.shortcuts import button_dialog
67

78

examples/dialogs/checkbox_dialog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of a checkbox-list-based dialog.
44
"""
5+
56
from prompt_toolkit.formatted_text import HTML
67
from prompt_toolkit.shortcuts import checkboxlist_dialog, message_dialog
78
from prompt_toolkit.styles import Style
@@ -30,7 +31,7 @@
3031
if results:
3132
message_dialog(
3233
title="Room service",
33-
text="You selected: %s\nGreat choice sir !" % ",".join(results),
34+
text="You selected: {}\nGreat choice sir !".format(",".join(results)),
3435
).run()
3536
else:
3637
message_dialog("*starves*").run()

examples/dialogs/input_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of an input box dialog.
44
"""
5+
56
from prompt_toolkit.shortcuts import input_dialog
67

78

examples/dialogs/messagebox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of a message box window.
44
"""
5+
56
from prompt_toolkit.shortcuts import message_dialog
67

78

examples/dialogs/password_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of an password input dialog.
44
"""
5+
56
from prompt_toolkit.shortcuts import input_dialog
67

78

examples/dialogs/progress_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of a progress bar dialog.
44
"""
5+
56
import os
67
import time
78

examples/dialogs/radio_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of a radio list box dialog.
44
"""
5+
56
from prompt_toolkit.formatted_text import HTML
67
from prompt_toolkit.shortcuts import radiolist_dialog
78

examples/dialogs/styled_messagebox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
This also demonstrates that the `title` argument can be any kind of formatted
88
text.
99
"""
10+
1011
from prompt_toolkit.formatted_text import HTML
1112
from prompt_toolkit.shortcuts import message_dialog
1213
from prompt_toolkit.styles import Style

examples/dialogs/yes_no_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of confirmation (yes/no) dialog window.
44
"""
5+
56
from prompt_toolkit.shortcuts import yes_no_dialog
67

78

examples/full-screen/buttons.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
A simple example of a few buttons and click handlers.
44
"""
5+
56
from prompt_toolkit.application import Application
67
from prompt_toolkit.application.current import get_app
78
from prompt_toolkit.key_binding import KeyBindings

0 commit comments

Comments
 (0)