Improve component typing

This commit is contained in:
Lilly Rose Berner
2022-05-16 15:30:03 -04:00
committed by GitHub
parent b7e25645dc
commit 7267d18d9e
10 changed files with 131 additions and 69 deletions
-1
View File
@@ -120,7 +120,6 @@ class Button(Item[V]):
raise TypeError(f'expected emoji to be str, Emoji, or PartialEmoji not {emoji.__class__}')
self._underlying = ButtonComponent._raw_construct(
type=ComponentType.button,
custom_id=custom_id,
url=url,
disabled=disabled,