mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Fix type annotations to adhere to latest pyright release
This commit is contained in:
@ -61,7 +61,6 @@ if TYPE_CHECKING:
|
||||
|
||||
from ._types import (
|
||||
UserCheck,
|
||||
ContextT,
|
||||
BotT,
|
||||
_Bot,
|
||||
)
|
||||
@ -378,7 +377,7 @@ class HelpCommand:
|
||||
bot.remove_command(self._command_impl.name)
|
||||
self._command_impl._eject_cog()
|
||||
|
||||
def add_check(self, func: UserCheck[ContextT], /) -> None:
|
||||
def add_check(self, func: UserCheck[Context[Any]], /) -> None:
|
||||
"""
|
||||
Adds a check to the help command.
|
||||
|
||||
@ -398,7 +397,7 @@ class HelpCommand:
|
||||
|
||||
self._command_impl.add_check(func)
|
||||
|
||||
def remove_check(self, func: UserCheck[ContextT], /) -> None:
|
||||
def remove_check(self, func: UserCheck[Context[Any]], /) -> None:
|
||||
"""
|
||||
Removes a check from the help command.
|
||||
|
||||
|
Reference in New Issue
Block a user