Skip to content

Commit b44baf9

Browse files
committed
bug fix for get linecode
1 parent 267ddd9 commit b44baf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonFiles/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def _serialize_tooltip(self, definitions, identifier=None):
339339
if definition.type in ['class', 'function']:
340340
signature = self._generate_signature(definition)
341341
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'):
343343
# jedi returns an empty string for compiled objects
344344
description = definition.docstring().strip()
345345
if definition.type == 'module':

0 commit comments

Comments
 (0)