Fix some type checker errors and remove some type ignores

Caught from an upgraded Pyright
This commit is contained in:
Rapptz
2022-03-16 01:46:58 -04:00
parent 6d75d2e937
commit 1192d842e1
8 changed files with 17 additions and 11 deletions

View File

@ -391,7 +391,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
try:
if hasattr(entity, '__cog_commands__'):
injected = wrap_callback(cmd.send_cog_help)
return await injected(entity) # type: ignore
return await injected(entity)
elif isinstance(entity, Group):
injected = wrap_callback(cmd.send_group_help)
return await injected(entity)