Update types to use Awaitable where possible

This commit is contained in:
Bryan Forbes
2022-03-30 21:00:24 -05:00
committed by GitHub
parent ff24c5229e
commit 06c257760b
5 changed files with 14 additions and 18 deletions

View File

@ -74,11 +74,11 @@ if TYPE_CHECKING:
Check,
CoroFunc,
ContextT,
MaybeCoroFunc,
MaybeAwaitableFunc,
)
_Prefix = Union[Iterable[str], str]
_PrefixCallable = MaybeCoroFunc[[BotT, Message], _Prefix]
_PrefixCallable = MaybeAwaitableFunc[[BotT, Message], _Prefix]
PrefixType = Union[_Prefix, _PrefixCallable[BotT]]
__all__ = (