Added a stub for #11 and slightly improved typing

This commit is contained in:
2025-04-27 22:05:34 +02:00
parent 9a5edbaa4d
commit 923173ebe8
3 changed files with 9 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ class EventStageNotFoundError(Exception):
"""PycordEventStage could not find event with such an ID in the database"""
def __init__(self, stage_id: str | ObjectId) -> None:
self.stage_id = stage_id
self.stage_id: str | ObjectId = stage_id
super().__init__(f"Stage with id {self.stage_id} was not found")

View File

@@ -2,6 +2,6 @@ class GuildNotFoundError(Exception):
"""PycordGuild could not find guild with such an ID in the database"""
def __init__(self, guild_id: int) -> None:
self.guild_id = guild_id
self.guild_id: int = guild_id
super().__init__(f"Guild with id {self.guild_id} was not found")