pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

[FEATURE] Hover documentation from multiple sources (documentation from `.py` when type comes from `.pyi`)

Open tanzious01 opened this issue 9 months ago • 1 comments

Describe the Bug

Image jedi shows documentation on hover, similar to how the rust analyzer works, but it doesn't work that well as the rust analyzer. Is this somehow able to be added to pyrefly?

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

tanzious01 avatar May 30 '25 16:05 tanzious01

Docstrings like this should work in general. However, this one doesn't work because the source we find for list.append comes from typeshed, not the implementation. In order to do this, we will need hover to be able to merge results from .py and .pyi files. This feature is likely a priority in the upcoming weeks.

kinto0 avatar May 30 '25 19:05 kinto0

This issue has been automatically marked as stale because it is assigned, but has not had recent activity for more than 2 weeks.

If you are still working on this issue, please add a comment to keep it active. Otherwise, please unassign yourself and allow someone else to take over.

Thank you for your contributions!

github-actions[bot] avatar Jul 04 '25 00:07 github-actions[bot]

this functionality was added recently, but there is one feature still missing, #1090. closing.

kinto0 avatar Sep 23 '25 18:09 kinto0