makerst: make vararg methods look the same as in editor help
This commit is contained in:
parent
f43ee4aff8
commit
4d9b7b9803
1 changed files with 6 additions and 0 deletions
|
@ -950,6 +950,12 @@ def make_method_signature(class_def, method_def, make_ref, state): # type: (Cla
|
|||
if arg.default_value is not None:
|
||||
out += '=' + arg.default_value
|
||||
|
||||
if isinstance(method_def, MethodDef) and method_def.qualifiers is not None and 'vararg' in method_def.qualifiers:
|
||||
if len(method_def.parameters) > 0:
|
||||
out += ', ...'
|
||||
else:
|
||||
out += '...'
|
||||
|
||||
out += ' **)**'
|
||||
|
||||
if isinstance(method_def, MethodDef) and method_def.qualifiers is not None:
|
||||
|
|
Loading…
Reference in a new issue