Update to pyright 1.1.242

This commit is contained in:
Rapptz committed 2022-04-30 19:37:01 -04:00
1 parent 8be103d6bb
commit 5536ef1eea
7 files changed
+23 -27

No files matched your search

+1 -2
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]: