diff options
| author | Rapptz <[email protected]> | 2021-05-27 01:41:18 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-27 01:41:18 -0400 |
| commit | fbafe20e510af604f7c81e87130409ea7e4526b8 (patch) | |
| tree | b383cb23be7ccbc31c3646a6266f0f1ad7135c9a | |
| parent | Fix typings for resolved channels in slash commands (diff) | |
| download | discord.py-fbafe20e510af604f7c81e87130409ea7e4526b8.tar.xz discord.py-fbafe20e510af604f7c81e87130409ea7e4526b8.zip | |
Allow View to be instantiated without subclassing
| -rw-r--r-- | discord/ui/view.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/ui/view.py b/discord/ui/view.py index 64d9736c..57faa312 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -93,9 +93,7 @@ class View: ) __discord_ui_view__: ClassVar[bool] = True - - if TYPE_CHECKING: - __view_children_items__: ClassVar[List[ItemCallbackType]] + __view_children_items__: ClassVar[List[ItemCallbackType]] = [] def __init_subclass__(cls) -> None: children: List[ItemCallbackType] = [] |