From e1961676a979e0684833bd90f1b7f74fe766677c Mon Sep 17 00:00:00 2001 From: Ryu Juheon Date: Sun, 18 Sep 2022 03:11:50 +0900 Subject: [PATCH] Fix import to appease mypy's import resolution --- discord/app_commands/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 418620dc631d..75db5283cc5c 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -69,7 +69,7 @@ # Generally, these two libraries are supposed to be separate from each other. # However, for type hinting purposes it's unfortunately necessary for one to # reference the other to prevent type checking errors in callbacks - from discord.ext.commands import Cog + from discord.ext import commands ErrorFunc = Callable[[Interaction, AppCommandError], Coroutine[Any, Any, None]] @@ -105,7 +105,7 @@ UnboundError, ] Check = Callable[['Interaction'], Union[bool, Coro[bool]]] -Binding = Union['Group', 'Cog'] +Binding = Union['Group', 'commands.Cog'] if TYPE_CHECKING: