Skip to content

Commit 6c0f94c

Browse files
committed
Add the Returns section to the operator automatic docstring
Signed-off-by: paul.profizi <[email protected]>
1 parent f353a99 commit 6c0f94c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/ansys/dpf/core/operators/operator.mustache

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ class {{class_name}}(Operator):
3434
{{/document}}
3535
{{/input_pins}}
3636

37+
Returns
38+
-------
39+
{{#output_pins}}
40+
{{#optional}}
41+
{{name}} :{{#types_for_docstring}} {{types_for_docstring}},{{/types_for_docstring}} optional
42+
{{/optional}}
43+
{{^optional}}
44+
{{name}} :{{#types_for_docstring}} {{types_for_docstring}}{{/types_for_docstring}}
45+
{{/optional}}
46+
{{#document}}
47+
{{{document}}}
48+
{{/document}}
49+
{{/output_pins}}
3750

3851
Examples
3952
--------

0 commit comments

Comments
 (0)