You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hover does not show pathlib.Path.read_text docstring #5568
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
Activity