Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Do not show docs if there's no docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
zrzka committed Oct 11, 2017
1 parent 0bdd09a commit d0e8e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Dropped folder reloads ...
* Target row if not expanded (to display triangle)
* Children nodes (dropped folder appears if it didn't exist before drop)
* Show documentation
* Do not show picker / docstring if symbol was found, but it has no docstring


## 1.2.0 (2017-10-10)
Expand Down
2 changes: 1 addition & 1 deletion blackmamba/script/show_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def main():
script = jedi.api.Script(text, line, column, path)
definitions = [
d for d in script.goto_definitions()
if d.module_path and d.line
if d.module_path and d.line and d.docstring()
]

if not definitions:
Expand Down

0 comments on commit d0e8e77

Please sign in to comment.