Skip to content

Commit e0c86cf

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 785a357 commit e0c86cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/ui/modal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ def add_item(self, item: Item[M]) -> Self:
243243
raise ValueError("You can only have up to 5 items in a modal dialog.")
244244

245245
if not isinstance(item, (InputText, Select, TextDisplay)):
246-
raise TypeError(f"expected InputText, Select, or TextDisplay, not {item.__class__!r}")
246+
raise TypeError(
247+
f"expected InputText, Select, or TextDisplay, not {item.__class__!r}"
248+
)
247249
if isinstance(item, (InputText, Select)) and not item.label:
248250
raise ValueError("InputTexts and Selects must have a label set")
249251

0 commit comments

Comments
 (0)