Hover does not show pathlib.Path.read_text docstring
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the Bug
Hovering over pathlib.Path.read_text shows its signature but no docstring, although the docstring is available at runtime through help() and __doc__.
Minimal reproduction
from pathlib import Path
Path(".").read_text() # Hover over read_text
Compare with:
print(Path.read_text.__doc__)
help(Path.read_text)
The runtime documentation includes:
Open the file in text mode, read it, and close the file.
Expected behavior
Hover should include the method's docstring alongside its signature.
Actual behavior
Hover includes the method signature but no description.
This was also reproduced by sending a textDocument/hover request directly to pyrefly lsp, independently of the editor. The response contains the signature and navigation links, but no docstring.
In that reproduction, textDocument/definition resolves to Pyrefly's bundled pathlib/__init__.pyi.
Environment
- Editor: VSCodium
- Pyrefly: 1.4.0
- Python: CPython 3.13.14
- OS: Linux
Related issue
Possibly related to #1090, which addressed retrieving implementation docstrings for attributes resolved through .pyi files.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
- Lingua principale
- Rust
- Stelle
- 7.2k
- Fork
- 578
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di facebook/pyrefly
-
Should `--preset=basic` show `reveal_type`?Forse già presa @MarcoGorelli l’ha presa oggi. Apertaquansight
-
`for` loop over a subclass ignores its overridden `__iter__` and uses the base class's type argumentApertaquansight typechecking
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
`unbound-name` not reported after a for loop that contains `break`Forse già presa @1-DARK l’ha presa oggi. Apertascoping-control-flow
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
scoping-control-flow
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
-
py3.15: error with sentinel + type qualifier (Final / ClassVar)Forse già presa @1-DARK l’ha presa oggi. Apertapy3.15
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Tutte le issue di facebook/pyrefly
Issue simili
-
ai_p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ClickHouse/ClickHouse#130006 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
horizon-rust/horizon#12071 ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
storytold/photocraft#12183 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
area:render needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bherbruck/solvecraft#13138 ·
-
testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100