Feature Request: View docstrings inside of import paths. #2580
Replies: 4 comments
-
Module-level docstrings are supported if you have a docstring at the top of the module. They are not supported if you dynamically assign a value to the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer, however, I am still getting unexpected behavior. I have tried to document this. tldr: it only works for relative imports, not for absolute imports Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
-
Docstrings are displayed for symbols, not for import paths. In the expression It sounds like you are interested in seeing module docstrings for module paths when they refer to a module. That's a reasonable enhancement request. |
Beta Was this translation helpful? Give feedback.
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
-
Hi there!
When I have a module (file)
f.py
withAnd in a different file
i would expect that triggering
editor.action.showDefinitionPreviewHover
onf
would show a hover with contents "xyz".However, it only shows
(module) f
.Thank you for considering my issue!
Beta Was this translation helpful? Give feedback.
All reactions