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__ = (