[ty] Infer type[Unknown] for calls to type() when overload evaluation is ambiguous#22569
Merged
AlexWaygood merged 1 commit intomainfrom Jan 14, 2026
Merged
[ty] Infer type[Unknown] for calls to type() when overload evaluation is ambiguous#22569AlexWaygood merged 1 commit intomainfrom
type[Unknown] for calls to type() when overload evaluation is ambiguous#22569AlexWaygood merged 1 commit intomainfrom
Conversation
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
|
6355fb9 to
71b994a
Compare
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-return-type |
3 | 1 | 4 |
invalid-argument-type |
2 | 0 | 0 |
no-matching-overload |
0 | 2 | 0 |
type-assertion-failure |
2 | 0 | 0 |
| Total | 7 | 3 | 4 |
7a3a415 to
b97b9e2
Compare
e7f60c2 to
a94d0ed
Compare
b97b9e2 to
5fb67d1
Compare
Member
Author
Thank you! I started with your branch so will list you as a co-author on the commit |
type(...) (Alex's version)type[Unknown] for calls to type() when overload evaluation is ambiguous
5fb67d1 to
5a90a02
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
This is an alternative PR to #22502
Test Plan
Mdtests