mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +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')
|
||||
_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]]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user