Skip to content

Commit 7caf4f5

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent a846b43 commit 7caf4f5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

examples/modal_dialogs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, *args, **kwargs) -> None:
1717
discord.ui.InputText(
1818
placeholder="Placeholder Test",
1919
),
20-
label="Short Input"
20+
label="Short Input",
2121
)
2222
second_input = discord.ui.Label(
2323
discord.ui.InputText(
@@ -44,7 +44,9 @@ def __init__(self, *args, **kwargs) -> None:
4444
super().__init__(
4545
first_input,
4646
second_input,
47-
discord.ui.TextDisplay("# Personal Questions"), # TextDisplay does NOT use Label
47+
discord.ui.TextDisplay(
48+
"# Personal Questions"
49+
), # TextDisplay does NOT use Label
4850
select,
4951
*args,
5052
**kwargs,

examples/views/new_components.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,28 @@
1111
User,
1212
)
1313
from discord.ui import (
14+
ActionRow,
1415
Button,
1516
Container,
17+
DesignerView,
1618
MediaGallery,
1719
Section,
1820
Select,
1921
Separator,
2022
TextDisplay,
2123
Thumbnail,
22-
DesignerView,
23-
ActionRow,
2424
button,
2525
)
2626

27+
2728
class MyRow(ActionRow):
2829

2930
@button(label="Delete Message", style=ButtonStyle.red, id=200)
3031
async def delete_button(self, button: Button, interaction: Interaction):
3132
await interaction.response.defer(invisible=True)
3233
await interaction.message.delete()
3334

35+
3436
class MyView(DesignerView):
3537
def __init__(self, user: User):
3638
super().__init__(timeout=30)

0 commit comments

Comments
 (0)