Closed
Conversation
Closed
❌ 35 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
justinchuby
commented
Apr 28, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR formally drops Python 3.8 support by updating type annotations to use built‐in generic types and related modern idioms. Key changes include:
- Replacing Legacy typing generics (e.g. Tuple, List, Dict) with built‐in alternatives (e.g. tuple, list, dict) and updated imports from collections.abc.
- Consistent conversion of type hints across multiple files in the codebase to align with Python 3.9+ standards.
Reviewed Changes
Copilot reviewed 79 out of 79 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| onnxscript/function_libs/torch_lib/ops/core.py | Updated type hint return types from Tuple[...] to tuple[...] |
| onnxscript/function_libs/torch_lib/graph_building/_graph_building_torch.py | Converted multiple type hints (Tuple, Dict, List) to built‐in generics and adjusted import sources |
| onnxscript/function_libs/tools/torch_lib/*.py | Changed usage of legacy typing generics to their built‐in versions (e.g. list, dict, etc.) |
| onnxscript/_internal/*.py and others | Updated type annotations and related imports to reflect modern Python syntax |
Collaborator
Author
|
Replaced by #2354 |
Copilot AI
added a commit
that referenced
this pull request
Apr 2, 2026
… of set for output_nodes Replace set[NodePattern] with dict[NodePattern, None] to preserve deterministic insertion order from the outputs sequence. Python sets have non-deterministic iteration order due to hash randomization, which caused the multi-output pattern matching to behave differently across runs. Fixes #2234 Agent-Logs-Url: https://github.com/microsoft/onnxscript/sessions/50f46d7a-beee-47c4-9369-3c28417380d1 Co-authored-by: justinchuby <11205048+justinchuby@users.noreply.github.com>
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.
Python 3.8 has reached EOL.
Fix #2233