mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 17:29:50 +00:00
Call super for __init_subclass__ in View
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
a2b09c0ecd
commit
f7e9795495
@ -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…
x
Reference in New Issue
Block a user