fix: Add type hint for bot parameter in setup function in EvalCog and TimerCog
This commit is contained in:
parent
31fd6e5aa7
commit
ece7f5f4f0
@ -57,5 +57,5 @@ class EvalCog(commands.Cog):
|
||||
else:
|
||||
await ctx.send(f'```py\n{value}{ret}\n```')
|
||||
|
||||
async def setup(bot):
|
||||
async def setup(bot: commands.Bot):
|
||||
await bot.add_cog(EvalCog(bot))
|
||||
|
@ -146,5 +146,5 @@ class TimerCog(commands.Cog):
|
||||
self.timer_check_task.cancel()
|
||||
self.save_timers() # Ensure timers are saved on unload
|
||||
|
||||
async def setup(bot):
|
||||
async def setup(bot: commands.Bot):
|
||||
await bot.add_cog(TimerCog(bot))
|
||||
|
Loading…
x
Reference in New Issue
Block a user