mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-02 00:00:02 +00:00
Fix import to appease mypy's import resolution
This commit is contained in:
parent
ce06beeb6c
commit
e1961676a9
@ -69,7 +69,7 @@ if TYPE_CHECKING:
|
|||||||
# Generally, these two libraries are supposed to be separate from each other.
|
# Generally, these two libraries are supposed to be separate from each other.
|
||||||
# However, for type hinting purposes it's unfortunately necessary for one to
|
# However, for type hinting purposes it's unfortunately necessary for one to
|
||||||
# reference the other to prevent type checking errors in callbacks
|
# reference the other to prevent type checking errors in callbacks
|
||||||
from discord.ext.commands import Cog
|
from discord.ext import commands
|
||||||
|
|
||||||
ErrorFunc = Callable[[Interaction, AppCommandError], Coroutine[Any, Any, None]]
|
ErrorFunc = Callable[[Interaction, AppCommandError], Coroutine[Any, Any, None]]
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ Error = Union[
|
|||||||
UnboundError,
|
UnboundError,
|
||||||
]
|
]
|
||||||
Check = Callable[['Interaction'], Union[bool, Coro[bool]]]
|
Check = Callable[['Interaction'], Union[bool, Coro[bool]]]
|
||||||
Binding = Union['Group', 'Cog']
|
Binding = Union['Group', 'commands.Cog']
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user