mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
[commands] Change BotT to be covariant
This commit is contained in:
parent
98a31cf285
commit
02b79eb219
@ -51,7 +51,7 @@ CoroFunc = Callable[..., Coro[Any]]
|
|||||||
|
|
||||||
ContextT = TypeVar('ContextT', bound='Context')
|
ContextT = TypeVar('ContextT', bound='Context')
|
||||||
_Bot = Union['Bot', 'AutoShardedBot']
|
_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]]]
|
Check = Union[Callable[["Cog", "ContextT"], MaybeCoro[bool]], Callable[["ContextT"], MaybeCoro[bool]]]
|
||||||
Hook = Union[Callable[["Cog", "ContextT"], Coro[Any]], Callable[["ContextT"], Coro[Any]]]
|
Hook = Union[Callable[["Cog", "ContextT"], Coro[Any]], Callable[["ContextT"], Coro[Any]]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user