-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ty] Improve generic call expression inference #21210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
09d2478 to
2e13754
Compare
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-assignment |
4 | 3 | 0 |
invalid-argument-type |
0 | 3 | 0 |
invalid-return-type |
0 | 1 | 2 |
possibly-missing-attribute |
0 | 3 | 0 |
no-matching-overload |
2 | 0 | 0 |
unsupported-operator |
0 | 2 | 0 |
index-out-of-bounds |
0 | 1 | 0 |
non-subscriptable |
0 | 1 | 0 |
unused-ignore-comment |
0 | 1 | 0 |
| Total | 6 | 15 | 2 |
CodSpeed Performance ReportMerging #21210 will degrade performances by 9.23%Comparing Summary
Benchmarks breakdown
Footnotes
|
9ad8d67 to
67143b9
Compare
67143b9 to
24e37e9
Compare
24e37e9 to
54dec10
Compare
54dec10 to
e967176
Compare
e967176 to
0dc3902
Compare
0dc3902 to
a0144fd
Compare
|
I imagine we could avoid the performance regression by special casing Also note that a lot of the diagnostic improvements won't be seen in this PR directly, but #20933 (which is currently stacked on top of this PR). |
MichaReiser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we understand what's causing the performance regression? Is it that we need to clone bindings or is it something else?
0f6ddfb to
2b79ab0
Compare
2b79ab0 to
0629a65
Compare
|
Most of the performance regressions have been resolved. There is an unavoidable regression when assigning the result of a generic call to a union, as we have to attempt inference multiple times for each element of the union. |
|
Can you take a look at the new diagnostics in the ecosystem report? Just taking a quick glance, I see in HomeAssistant a few occurrences of "object of type |
|
It looks like those failures are due to I added a failing test to track those. |
a786a14 to
46b938b
Compare
46b938b to
966b438
Compare
Summary
Implements astral-sh/ty#1356 and astral-sh/ty#136 (comment).