Skip to content

Commit 25fbd2a

Browse files
authored
typecheck
1 parent 3a82843 commit 25fbd2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/modal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ 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,)):
181+
if not isinstance(item, (Item, InputText, )):
182182
raise TypeError(f"expected Item, not {item.__class__!r}")
183183

184184
self._children.append(item)

0 commit comments

Comments
 (0)