From dbe652dcce52e392d0d98f69bd1c52ebb36c52a5 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Mon, 3 Mar 2025 23:08:53 -0500 Subject: [PATCH] Fix smells in submission init file. --- cogs/submission/__init__.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cogs/submission/__init__.py b/cogs/submission/__init__.py index d742ee3..48c3557 100644 --- a/cogs/submission/__init__.py +++ b/cogs/submission/__init__.py @@ -1,6 +1,4 @@ -""" -Cog for creating submission process. -""" +"""Cog for creating submission process.""" from nextcord.ext import commands @@ -15,14 +13,14 @@ class SubmissionCog(commands.Cog, name="Submission Cog"): self.bot = bot @commands.Cog.listener() - async def on_ready(self): - """Called when cog is loaded""" + async def on_ready(self) -> None: + """Called when cog is loaded.""" self.bot.add_view(SubmissionCreateButton(self.bot)) self.bot.add_view(VerificationView()) # This function will be called when this extension is loaded. # It is necessary to add these functions to the bot. -def setup(bot: commands.Bot): - """Adds function to bot""" +def setup(bot: commands.Bot) -> None: + """Adds function to bot.""" bot.add_cog(SubmissionCog(bot))