-
-
Notifications
You must be signed in to change notification settings - Fork 727
Default to using Python 3.14 for !eval #3406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This will allow all other utility files within the snekbox cog to access types such as `SupportedPythonVersions` without causing circular import issues.
a3b2b00
to
4ff670c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Updates the eval command to use Python 3.14 as the default version instead of 3.13, and removes the pre-release notice for Python 3.14 jobs. This change aligns with snekbox switching from Python 3.14.0rc1 to 3.14.0.
- Moved
SupportedPythonVersions
and related constants to a new dedicated constants module - Changed default Python version from "3.13" to the first available version (3.14) using
get_args()
- Removed the pre-release notice for Python 3.14 in status messages
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
bot/exts/utils/snekbox/_eval.py |
Updates default version to use first available Python version and removes 3.14 pre-release notice |
bot/exts/utils/snekbox/_constants.py |
New module containing SupportedPythonVersions type and other constants |
bot/exts/utils/snekbox/_cog.py |
Refactored to import constants from new module instead of defining them locally |
bot/exts/utils/snekbox/__init__.py |
Updates imports to reflect the moved SupportedPythonVersions type |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we drop 3.13t for 3.14t now too?
Instead of using typing.get_args(...) and fetching the first value returned (which is mostly safe, but not guaranteed to be so), use a new constant DEFAULT_PYTHON_VERSION to control the current default Python executor when no explicit interpreter version is passed.
85dec81
to
92a0fb8
Compare
Removes the need to hardcode each specific "3.Xt" version we may support in future. Co-authored-by: ChrisJL <ChrisLovering@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
See python-discord/snekbox#246 for relevant snekbox changes
Updates the eval command to default to executing user code with snekbox's Python 3.14 binary.
See python-discord/snekbox#245 for the related snekbox change to switch from 3.14.0rc1 to 3.14.0.
The notice about 3.14 jobs being pre-release is also removed by this PR.