From 33fc490f8775580580a71167c3280eb590acffe8 Mon Sep 17 00:00:00 2001 From: Rashida Ijaz butt Date: Sun, 23 Aug 2026 17:45:09 +0300 Subject: [PATCH] change `WEBPAGE_CHOICES` from tuple to list to fix `TypeError` --- src/bot/cogs/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/cogs/constants.py b/src/bot/cogs/constants.py index ac9795d..667997e 100644 --- a/src/bot/cogs/constants.py +++ b/src/bot/cogs/constants.py @@ -1,6 +1,6 @@ from discord.app_commands import Choice -WEBPAGE_CHOICES: tuple[Choice[str], ...] = ( +WEBPAGE_CHOICES: list[Choice[str], ...] = [ Choice(name="Home", value=""), Choice(name="Getting started", value="getting-started/"), Choice(name="Resources", value="resources/"), @@ -9,7 +9,7 @@ Choice(name="Code Adventure", value="code-adventure/"), Choice(name="Learning path", value="resources/learning-path/"), Choice(name="Codeblocks", value="rules/channels/#__tabbed_2_1"), -) +] LATEX_COLORS = { "emerald": "Emerald",