basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

docstrings for standard library should link to docs.python.org

Open KotlinIsland opened this issue 1 year ago • 2 comments

The doc popup should also link to docs.python.org like PyCharm does: 313515455-b7049251-ff91-471a-a3d4-93c2addfe27a

  • https://github.com/DetachHead/basedpyright/issues/160#issuecomment-2002673382

KotlinIsland avatar Jul 09 '24 05:07 KotlinIsland

  • ~~Also link to the source code.
    For instance, if PYTHON_VERSION=3.13.0, then asyncio.gather should link to https://github.com/python/cpython/blob/v3.13.0/Lib/asyncio/tasks.py#L784-L813~~ EDIT: Already handled by textDocument/Definition which suggests the relevant .py file (in addition to .pyi files).
  • Also links for major non-standard libraries (e.g. torch, plotly, ...)

YodaEmbedding avatar Apr 21 '25 23:04 YodaEmbedding

"go to definition" already takes you to tasks.py while "go to declaration" takes you to tasks.pyi

DetachHead avatar Apr 22 '25 00:04 DetachHead