fix(api-core): drop support for Python 3.9#16980
Merged
chalmerlowe merged 21 commits intomainfrom May 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request drops support for Python 3.9, updating documentation, metadata, and CI configurations to set the minimum requirement to Python 3.10. The changes include removing compatibility shims for older Python versions and refactoring logic to utilize features like match statements. Feedback indicates a potential regression in noxfile.py where the new match statement for legacy_proto does not explicitly handle False values, which could lead to assertion failures during testing.
chalmerlowe
commented
May 7, 2026
parthea
reviewed
May 7, 2026
parthea
reviewed
May 8, 2026
chalmerlowe
commented
May 11, 2026
chalmerlowe
commented
May 11, 2026
chalmerlowe
commented
May 11, 2026
… files. Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
parthea
approved these changes
May 11, 2026
Contributor
Author
|
UPDATE: I did not see the approval when I wrote this. Thanks
|
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.
This PR updates google-api-core to establish Python 3.10 as the minimum supported version, dropping support for Python 3.9 and below.
Changes
Configuration: Updated pyproject.toml and noxfile.py to require Python 3.10+ and remove references to Python 3.7, 3.8, and 3.9. Updated README.rst and CONTRIBUTING.rst to reflect the new support status.
Cleanup: Removed aiter and anext polyfills in test_bidi_async.py and removed Python < 3.10 polyfills in _python_version_support.py.
Constraints & Dependencies:
Fixes internal issue: http://b/482126936 🦕