Skip to content

Commit

Permalink
Merge pull request #894 from samisalreadytaken/typelessvar
Browse files Browse the repository at this point in the history
Skip variable type print on empty types
  • Loading branch information
mergify[bot] authored Dec 12, 2024
2 parents 8f32571 + 2b0035b commit 3a86a1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python3/vimspector/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,10 @@ def _DrawVariables( self, view, variables, indent_len, is_short = False ):
value = ''

text = f'{indent}{marker}{icon} {name}: {value}'
else:
elif len( kind ) > 0:
text = f'{indent}{marker}{icon} {name} ({kind}): {value}'
else:
text = f'{indent}{marker}{icon} {name}: {value}'

line = utils.AppendToBuffer(
view.buf,
Expand Down

0 comments on commit 3a86a1b

Please sign in to comment.