summaryrefslogtreecommitdiffstats
path: root/doc/tools/makerst.py
diff options
context:
space:
mode:
authormerumelu <merumelu@protonmail.com>2019-03-05 20:42:09 +0100
committermerumelu <merumelu@protonmail.com>2019-03-05 20:42:09 +0100
commit4d9b7b9803422118077555ddf53a2550180209a0 (patch)
tree10493aa4882f16c950c165148f32c23c7f4730fd /doc/tools/makerst.py
parentf43ee4aff8e5f72c24cfbd8f1ff90703714857e0 (diff)
downloadredot-engine-4d9b7b9803422118077555ddf53a2550180209a0.tar.gz
makerst: make vararg methods look the same as in editor help
Diffstat (limited to 'doc/tools/makerst.py')
-rwxr-xr-xdoc/tools/makerst.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index 22c0b5d1fd..4b5785f604 100755
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -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: