[ty] print function names for bare Signatures opportunistically#21438
[ty] print function names for bare Signatures opportunistically#21438
Conversation
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
|
CodSpeed Performance ReportMerging #21438 will improve performances by 5.08%Comparing Summary
Benchmarks breakdown
Footnotes
|
|
Signatures don't necessarily come from |
| { | ||
| writer.write_str(&name)?; | ||
| } else { | ||
| writer.write_str("_")?; |
There was a problem hiding this comment.
Yes, it's for Callable and lambda expressions and we do use the same display approach.
|
I'll put this in draft for now as this might not be necessary, refer to my comment here: #21417 (comment). |
|
Yeah I'm gonna send this to hell for now |
This is the return of #21438 because we never found anything better and I think it would be good to have this for the beta.


This is a followup to #21417 that improves some places where we pretty-display types (hence being restricted to
multilineprinting). Even in cases where we can't get the name it behooves us to add adef _to fix python syntax highlighting in e.g. hovers.