diff --git a/discord/ext/commands/_types.py b/discord/ext/commands/_types.py index 2907d8f69..9f15a0cf7 100644 --- a/discord/ext/commands/_types.py +++ b/discord/ext/commands/_types.py @@ -51,7 +51,7 @@ CoroFunc = Callable[..., Coro[Any]] ContextT = TypeVar('ContextT', bound='Context') _Bot = Union['Bot', 'AutoShardedBot'] -BotT = TypeVar('BotT', bound=_Bot) +BotT = TypeVar('BotT', bound=_Bot, covariant=True) Check = Union[Callable[["Cog", "ContextT"], MaybeCoro[bool]], Callable[["ContextT"], MaybeCoro[bool]]] Hook = Union[Callable[["Cog", "ContextT"], Coro[Any]], Callable[["ContextT"], Coro[Any]]]