[ty] Simple syntactic validation for PEP-613 type aliases#22652
Merged
AlexWaygood merged 3 commits intomainfrom Jan 17, 2026
Merged
[ty] Simple syntactic validation for PEP-613 type aliases#22652AlexWaygood merged 3 commits intomainfrom
AlexWaygood merged 3 commits intomainfrom
Conversation
Typing conformance results improved 🎉The percentage of diagnostics emitted that were expected errors increased from 70.27% to 70.65%. The percentage of expected errors that received a diagnostic increased from 60.13% to 61.24%. Summary
True positives addedDetails
|
|
38ff232 to
251b9e8
Compare
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-return-type |
0 | 1 | 7 |
invalid-assignment |
0 | 0 | 5 |
invalid-argument-type |
0 | 0 | 3 |
| Total | 0 | 1 | 15 |
2ff4232 to
0f39a51
Compare
0f39a51 to
53b4349
Compare
charliermarsh
approved these changes
Jan 17, 2026
5928549 to
7fe8f41
Compare
7fe8f41 to
12401e2
Compare
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
Full validation of PEP-613 type aliases is hard, but we can improve our typing conformance-suite score by quite a bit by adding some simple syntactic checks.
Test Plan
mdtests added