| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 267ddd9 commit b44baf9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -339,7 +339,7 @@ def _serialize_tooltip(self, definitions, identifier=None): | |||
| 339 | 339 | if definition.type in ['class', 'function']: | |
| 340 | 340 | signature = self._generate_signature(definition) | |
| 341 | 341 | description = definition.docstring(raw=True).strip() | |
| 342 | - if not description and not definition.get_line_code(): | ||
| 342 | + if not description and not hasattr(definition, 'get_line_code'): | ||
| 343 | 343 | # jedi returns an empty string for compiled objects | |
| 344 | 344 | description = definition.docstring().strip() | |
| 345 | 345 | if definition.type == 'module': | |
| Back | FazBrowse Home | New Git URL |
0 commit comments