chore: drop Python 3.9, add 3.12/3.13/3.14 classifiers and CI support#821
Merged
philpep merged 2 commits intoJun 4, 2026
Merged
Conversation
philpep
requested changes
Jun 3, 2026
Contributor
philpep
left a comment
There was a problem hiding this comment.
Please also update target-version in ruff.toml, I guess some syntax modernization is required then.
Also I guess you use AI (or even you might be an agent?), in all cases be honnest and transparent about this please (in commit message or PR description)
Thanks
Contributor
Author
|
Sure, I've updated the |
philpep
requested changes
Jun 4, 2026
Contributor
philpep
left a comment
There was a problem hiding this comment.
I think patch 3 should be squashed in patch 2 since it's a direct consequence of it.
Otherwise full changes LGTM
- ruff.toml: target-version py39 -> py310 - Modernize type annotations: Optional[X] -> X | None, Union[X, Y] -> X | Y - Remove unused typing imports (Optional, Union) - Migrate typing.Callable -> collections.abc.Callable
125cda5 to
63c08f8
Compare
Contributor
Author
philpep
approved these changes
Jun 4, 2026
Contributor
|
Merged, thanks! |
Contributor
Could be but two commits here looks better. |
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.

Drop Python 3.9 (EOL at 2025-10-31) support and bump minimum to 3.10. Add missing 3.12 and 3.13 classifiers, plus 3.14 support.
pyproject.toml:requires-pythonbumped from>=3.9to>=3.10; removed 3.9 classifier; added 3.12, 3.13, 3.14 classifiers.github/workflows/tox.yml: replaced 3.9 with 3.14 in the lint matrixruff.toml: target-version bumped frompy39topy310; applied pyupgrade fixes across 8 source files (PEP 604 union syntax, etc.)Assisted by Pi + DeepSeek v4