Upgrade ty to 0.0.59#757
Merged
Merged
Conversation
bradhilton
commented
Jul 15, 2026
bradhilton
commented
Jul 15, 2026
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.
Summary
ty 0.0.14to0.0.59Diagnostic inventory and treatment options
The CI-shaped Megatron environment initially reported 276 diagnostics. The largest rule buckets were 139
invalid-argument-type, 28unresolved-attribute, 26invalid-assignment, 18missing-typed-dict-key, and 12unknown-argument.Legacy suppression codes
# type: ignorerather than paired mypy/ty comments.Intentional test doubles and negative tests
Real annotation/narrowing gaps
Dynamic framework-extension boundaries
getattr/setattrwith runtime validation for deliberately installed methods, modules, tensor metadata, and test mutations.Triton/TileLang and Megatron Bridge APIs
Optional dependency environments
No global type-error rule is disabled.
Validation
ty 0.0.59, lightweight backend/dev environment: all checks passedty 0.0.59, CI-shaped Megatron dependency environment: all checks passedprek: ruff, ruff-format, ty, and lockfile hooks passedThree Megatron-importing unit modules cannot collect on this CPU workstation because Transformer Engine cannot load its packaged CUDA runtime; the Megatron CI lane remains the runtime authority for those modules.