Skip to content

Commit 3a86a1b

Browse files
authored
Merge pull request #894 from samisalreadytaken/typelessvar
Skip variable type print on empty types
2 parents 8f32571 + 2b0035b commit 3a86a1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python3/vimspector/variables.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,10 @@ def _DrawVariables( self, view, variables, indent_len, is_short = False ):
757757
value = ''
758758

759759
text = f'{indent}{marker}{icon} {name}: {value}'
760-
else:
760+
elif len( kind ) > 0:
761761
text = f'{indent}{marker}{icon} {name} ({kind}): {value}'
762+
else:
763+
text = f'{indent}{marker}{icon} {name}: {value}'
762764

763765
line = utils.AppendToBuffer(
764766
view.buf,

0 commit comments

Comments
 (0)