Fix type annotations to adhere to latest pyright release

This commit is contained in:
Josh
2022-06-13 05:30:45 +10:00
committed by GitHub
parent 334ef1d7fa
commit c9f777c873
14 changed files with 50 additions and 47 deletions

View File

@ -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.