Skip to content

Commit 1499805

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 4b85cc9 commit 1499805

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

discord/ui/input_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,5 @@ def refresh_from_modal(self, interaction: Interaction, data: dict) -> None:
254254
def uses_label(self) -> bool:
255255
return self.description is not None
256256

257+
257258
TextInput = InputText

discord/ui/modal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ def add_item(self, item: InputText | Item[M]) -> Self:
248248
raise ValueError("You can only have up to 5 items in a modal dialog.")
249249

250250
if not isinstance(item, (InputText, Item)):
251-
raise TypeError(
252-
f"expected InputText or Item, not {item.__class__!r}"
253-
)
251+
raise TypeError(f"expected InputText or Item, not {item.__class__!r}")
254252
if isinstance(item, (InputText, Select)) and not item.label:
255253
raise ValueError("InputTexts and Selects must have a label set")
256254

0 commit comments

Comments
 (0)