Skip to content

Commit 415e20c

Browse files
committed
bug fix - check if _definition is nothin
1 parent 60d556d commit 415e20c

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
@@ -30,7 +30,7 @@ def _get_definition_type(self, definition):
3030

3131
def _additional_info(self, completion):
3232
"""Provide additional information about the completion object."""
33-
if completion._definition is None:
33+
if not hasattr(completion, '_definition') or completion._definition is None:
3434
return ''
3535
if completion.type == 'statement':
3636
nodes_to_display = ['InstanceElement', 'String', 'Node', 'Lambda',

0 commit comments

Comments
 (0)