Update to pyright 1.1.242

This commit is contained in:
Rapptz
2022-04-30 19:37:01 -04:00
parent 8be103d6bb
commit 5536ef1eea
7 changed files with 23 additions and 27 deletions

View File

@ -508,8 +508,7 @@ class Cog(metaclass=CogMeta):
command.cog = self
if command.parent is None:
try:
# Type checker does not understand the generic bounds here
bot.add_command(command) # type: ignore
bot.add_command(command)
except Exception as e:
# undo our additions
for to_undo in self.__cog_commands__[:index]: