Merged
Conversation
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update minimum Python version to 3.9 in project files
Bump Python minimum version to 3.9+
Jan 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the documented and enforced minimum Python version for the Python SDK to 3.9+, aligning it with the use of PEP 585 generics that are not compatible with Python 3.8, so 3.8 users fail at install time instead of at runtime.
Changes:
- Raised
requires-pythoninpython/pyproject.tomlfrom>=3.8to>=3.9and removed the Python 3.8 classifier. - Updated Ruff configuration
target-versionfrompy38topy39to match the new minimum runtime version. - Updated the Python SDK README requirements from “Python 3.8+” to “Python 3.9+” for consistency with packaging metadata.
Note: Other repo docs still reference Python 3.8 (e.g.,CONTRIBUTING.md,cookbook/python/recipe/README.md); consider updating those in a follow-up change.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
python/pyproject.toml |
Bumps the minimum supported Python version to 3.9 in packaging metadata and linter configuration, removing Python 3.8 from classifiers. |
python/README.md |
Updates the documented Python version requirement from 3.8+ to 3.9+ for the Python SDK. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
patniko
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The codebase uses PEP 585 generic type syntax (
tuple[str, int]) which requires Python 3.9+. Python 3.8 raisesTypeError: 'type' object is not subscriptableat runtime.Changes
python/pyproject.tomlrequires-python:>=3.8→>=3.9target-version:py38→py39python/README.mdPython 3.8+→Python 3.9+Users on Python 3.8 will now receive a clear installation error instead of runtime failures.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.