Browse Source

Call super for __init_subclass__ in View

Co-authored-by: Danny <[email protected]>
pull/9233/head
Takagi Tasuku 2 years ago
committed by GitHub
parent
commit
f7e9795495
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/ui/view.py

2
discord/ui/view.py

@ -157,6 +157,8 @@ class View:
__view_children_items__: ClassVar[List[ItemCallbackType[Any, Any]]] = []
def __init_subclass__(cls) -> None:
super().__init_subclass__()
children: Dict[str, ItemCallbackType[Any, Any]] = {}
for base in reversed(cls.__mro__):
for name, member in base.__dict__.items():

Loading…
Cancel
Save