From bf3eb0a7fe46ee5d3dfbd5767f71d53f406038a4 Mon Sep 17 00:00:00 2001 From: Aaron Hennessey Date: Wed, 9 Mar 2022 22:55:55 +0000 Subject: [PATCH] [commands] Fix for _Bot Context generic in converters --- discord/ext/commands/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index d6094d373..b7abfdaa2 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -53,7 +53,7 @@ if TYPE_CHECKING: from discord.threads import Thread from .bot import Bot, AutoShardedBot - _Bot = Union[Bot, AutoShardedBot] + _Bot = TypeVar('_Bot', bound=Union[Bot, AutoShardedBot]) __all__ = (