Skip to content

Commit e32fdad

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 0517d2e commit e32fdad

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

discord/ui/action_row.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def add_button(
178178
emoji: str | GuildEmoji | AppEmoji | PartialEmoji | None = None,
179179
sku_id: int | None = None,
180180
id: int | None = None,
181-
priority: int | None = None
181+
priority: int | None = None,
182182
) -> Self:
183183
"""Adds a :class:`Button` to the action row.
184184
@@ -219,7 +219,7 @@ def add_button(
219219
emoji=emoji,
220220
sku_id=sku_id,
221221
id=id,
222-
priority=priority
222+
priority=priority,
223223
)
224224

225225
return self.add_item(button)

discord/ui/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def decorator(func: ItemCallbackType) -> ItemCallbackType:
363363
"emoji": emoji,
364364
"row": row,
365365
"id": id,
366-
"priority": priority
366+
"priority": priority,
367367
}
368368
return func
369369

discord/ui/container.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def __init_subclass__(cls) -> None:
6969
for base in reversed(cls.__mro__):
7070
for member in base.__dict__.values():
7171
if hasattr(member, "__discord_ui_model_type__"):
72-
raise ValueError("The @button and @select decorators are incompatible with Container. Use ActionRow instead.")
72+
raise ValueError(
73+
"The @button and @select decorators are incompatible with Container. Use ActionRow instead."
74+
)
7375

7476
def __init__(
7577
self,

discord/ui/view.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ def __init_subclass__(cls) -> None:
786786
for base in reversed(cls.__mro__):
787787
for member in base.__dict__.values():
788788
if hasattr(member, "__discord_ui_model_type__"):
789-
raise ValueError("The @button and @select decorators are incompatible with DesignerView. Use ActionRow instead.")
789+
raise ValueError(
790+
"The @button and @select decorators are incompatible with DesignerView. Use ActionRow instead."
791+
)
790792

791793
def __init__(
792794
self,

0 commit comments

Comments
 (0)