From 994660faad2ccbecb3f8a7400c89d6f64b78e405 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 2 Apr 2022 05:52:51 -0400 Subject: [PATCH] [commands] Fix unknown generic type in tree_cls --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 857b85c6f..bc0e7d209 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -156,7 +156,7 @@ class BotBase(GroupMixin[None]): self, command_prefix: PrefixType[BotT], help_command: Optional[HelpCommand] = _default, - tree_cls: Type[app_commands.CommandTree] = app_commands.CommandTree, + tree_cls: Type[app_commands.CommandTree[Any]] = app_commands.CommandTree, description: Optional[str] = None, **options: Any, ) -> None: