Skip to content

Commit

Permalink
fix missing typing
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath authored and peterdragun committed Mar 23, 2024
1 parent c01cc67 commit bd9baca
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cogs/autopin/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class AutoPin(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.warning_time = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(
minutes=self.config.autopin_warning_cooldown
Expand Down
4 changes: 3 additions & 1 deletion cogs/bookmark/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from disnake.ext.commands import Bot

from .cog import Bookmark


def setup(bot):
def setup(bot: Bot):
bot.add_cog(Bookmark(bot))
2 changes: 1 addition & 1 deletion cogs/bookmark/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Bookmark(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
4 changes: 3 additions & 1 deletion cogs/contestvote/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from disnake.ext.commands import Bot

from .cog import ContestVote


def setup(bot):
def setup(bot: Bot):
bot.add_cog(ContestVote(bot))
4 changes: 3 additions & 1 deletion cogs/emoji/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from disnake.ext.commands import Bot

from .cog import Emoji


def setup(bot):
def setup(bot: Bot):
bot.add_cog(Emoji(bot))
2 changes: 1 addition & 1 deletion cogs/emoji/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


class Emoji(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
self.bot = bot
self.check = room_check.RoomCheck(bot)
self.tasks = [self.download_emojis_task.start()]
Expand Down
2 changes: 1 addition & 1 deletion cogs/fitroom/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class FitRoom(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/forum/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class Forum(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/fun/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


class Fun(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/gif/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


class Gif(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self.imagehandler = ImageHandler()
Expand Down
2 changes: 1 addition & 1 deletion cogs/grillbotapi/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class GrillbotApi(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self._owner_id = bot.owner_id
Expand Down
2 changes: 1 addition & 1 deletion cogs/hugs/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Hugs(Base, commands.Cog):

emoji_count = len(Base.config.hug_emojis)

def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self.hugs_db = HugsTableDB()
Expand Down
2 changes: 1 addition & 1 deletion cogs/info/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class Info(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/latex/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


class Latex(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/meme/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Meme(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/message/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class Message(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/moderation/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def slowmode_delay_times(inter, string: str) -> list[str]:


class Moderation(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self.moderation_true = "moderation:resolve:true"
Expand Down
2 changes: 1 addition & 1 deletion cogs/nameday/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


class Nameday(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self.check = room_check.RoomCheck(bot)
Expand Down
2 changes: 1 addition & 1 deletion cogs/random/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class Random(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot
self.check = room_check.RoomCheck(bot)
Expand Down
2 changes: 1 addition & 1 deletion cogs/reactions/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Reactions(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/streamlinks/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def autocomp_subjects_with_stream(inter: disnake.ApplicationCommandInterac


class StreamLinks(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
global subjects, subjects_with_stream
super().__init__()
self.bot = bot
Expand Down
2 changes: 1 addition & 1 deletion cogs/studijni/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class Studijni(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down
2 changes: 1 addition & 1 deletion cogs/week/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class Week(Base, commands.Cog):
def __init__(self, bot):
def __init__(self, bot: commands.Bot):
super().__init__()
self.bot = bot

Expand Down

0 comments on commit bd9baca

Please sign in to comment.