Changed line length to 108 in black

This commit is contained in:
2025-04-27 22:06:35 +02:00
parent 923173ebe8
commit 11f0cc384a
14 changed files with 101 additions and 44 deletions

View File

@@ -4,7 +4,7 @@ from bson.errors import InvalidId
from discord import ApplicationContext, Attachment, SlashCommandGroup, option
from discord.ext.commands import Cog
from discord.utils import basic_autocomplete
from libbot.i18n import in_every_locale, _
from libbot.i18n import _, in_every_locale
from classes import PycordEvent, PycordEventStage, PycordGuild
from classes.pycord_bot import PycordBot
@@ -67,7 +67,9 @@ class CogStage(Cog):
if not (await is_event_status_valid(ctx, pycord_event)):
return
processed_media: List[Dict[str, Any]] = [] if media is None else await self.bot.process_attachments([media])
processed_media: List[Dict[str, Any]] = (
[] if media is None else await self.bot.process_attachments([media])
)
event_stage: PycordEventStage = await self.bot.create_event_stage(
event=pycord_event,
@@ -146,7 +148,9 @@ class CogStage(Cog):
await ctx.respond("Stage sequence out of range.")
return
processed_media: List[Dict[str, Any]] = [] if media is None else await self.bot.process_attachments([media])
processed_media: List[Dict[str, Any]] = (
[] if media is None else await self.bot.process_attachments([media])
)
if not (question is None and answer is None and media is None and remove_media is False):
await event_stage.update(