aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-05-17 09:53:30 +0100
committerGravatar Chris Lovering <[email protected]>2025-05-17 09:53:30 +0100
commit3335e3a41cef7811e9068c5cf8df200644c3cf5f (patch)
tree01691c6c9066b81b8ab014a602df31224f8308fd
parentAdd extra info about pre-release versions in snekbox output (diff)
Dynamically get the default snekbox Python version by looking at the first supported version
-rw-r--r--bot/exts/utils/snekbox/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py
index 13c41686b..35a5c5e60 100644
--- a/bot/exts/utils/snekbox/_cog.py
+++ b/bot/exts/utils/snekbox/_cog.py
@@ -604,7 +604,7 @@ class Snekbox(Cog):
issue with it!
"""
code: list[str]
- python_version = python_version or "3.13"
+ python_version = python_version or get_args(SupportedPythonVersions)[0]
job = EvalJob.from_code("\n".join(code)).as_version(python_version)
await self.run_job(ctx, job)