Skip to content

Commit 3ee00e0

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 25fbd2a commit 3ee00e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

discord/ui/modal.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ def add_item(self, item: ModalItem) -> Self:
178178
if len(self._children) > 5:
179179
raise ValueError("You can only have up to 5 items in a modal.")
180180

181-
if not isinstance(item, (Item, InputText, )):
181+
if not isinstance(
182+
item,
183+
(
184+
Item,
185+
InputText,
186+
),
187+
):
182188
raise TypeError(f"expected Item, not {item.__class__!r}")
183189

184190
self._children.append(item)

0 commit comments

Comments
 (0)