You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.9 reached its official end-of-life (EOL) on October 31, 2025, meaning the Python Software Foundation (PSF) stopped providing security updates and bug fixes, making it crucial for users to migrate to newer versions like Python 3.10+ to avoid security vulnerabilities and maintain library support.
In _prepare_inputs_and_namespace the return annotation uses tuple[type[math] | _ArrayNamespace, tuple]; callers may rely on concrete tuple element types. Verify downstream usage expects a bare tuple and not specific shapes, and that isinstance checks on the first element work across both math and ArrayNamespace.
The function array_namespace now returns using PEP 604 unions; ensure all internal consumers and any exported typing stubs are updated to match _ArrayNamespace | _ArrayNamespaceWithLinAlg to avoid mypy/pyright mismatches.
file_digest docstring and logic reference Python 3.11 API while targeting 3.10; confirm behavior matches hashlib.file_digest for edge cases (empty files, non-seekable streams) and that digest callable typing covers constructors without args.
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
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.
Introduction
https://devguide.python.org/versions/
Changes
Behavior
Behavior on other python versions should work, pass tests.
Review checklist