Skip to content

Commit 20149cf

Browse files
nathanaldersonlpil
authored andcommitted
Include arg type in google-style docstrings
1 parent 67e506c commit 20149cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UltiSnips/python.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def format_arg(arg, style):
138138
elif style == NORMAL:
139139
return ":%s: TODO" % arg
140140
elif style == GOOGLE:
141-
return "%s (TODO): TODO" % arg
141+
return "%s (%s): TODO" % (arg, arg.type or "TODO")
142142
elif style == JEDI:
143143
return ":type %s: TODO" % arg
144144
elif style == NUMPY:

0 commit comments

Comments
 (0)