deps(python): enable Python 3.15 and Python 3.15t support - #293
Merged
Conversation
Advance stable CI and maintenance environments to Python 3.14, align the Conda typing-extensions floor, update typing examples for Python 3.14's union representation, and suppress enum suggestions for preprocessor-only feature flags.
XuehaiPan
force-pushed
the
codex/python315-support
branch
from
August 19, 2026 11:34
744a755 to
48b1a71
Compare
XuehaiPan
marked this pull request as ready for review
August 19, 2026 11:38
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.
Description
Enable general Python 3.15 and Python 3.15t support across optree's CI, documentation, and packaging maintenance environments.
This change advances the stable full-test matrix from Python 3.12/3.13 to Python 3.13/3.14, moves lint, Read the Docs, and Conda maintenance to Python 3.14, raises the Conda
typing-extensionsfloor to the version required by that interpreter, and updates thePyTreetyping examples for Python 3.14's union representation.Motivation and Context
Python 3.15 support had arrived incrementally in classifiers, dependency markers, free-threaded wheel builds, Pyodide coverage, and built-in
frozendictsupport. This PR completes the general version-support update following the same repository-wide pattern used for Python 3.13 in #156 and Python 3.14/3.14t in #216.Types of changes
What types of changes does your code introduce? Put an
xin all the boxes that apply:Implemented Tasks
typing-extensions.Checklist
Go over all the following points, and put an
xin all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!
make format. (required)make lint. (required)make testpass. (required)Validation
python3 -m pre_commit run --all-files: passed.make lintpassed its Python, type-checking, and doctest stages locally. Itsclang-tidystage is left unchecked because the available macOS LLVM 22 toolchain reports existing platform/toolchain diagnostics; noclang-tidy --fixoutput is included in this PR.