mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
Update to pyright 1.1.242
This commit is contained in:
@ -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]:
|
||||
|
Reference in New Issue
Block a user