Add named output parsing to tuple parsing function

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-01-05 16:21:21 -06:00
parent 1b3180e3ab
commit 33489aa277
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -27,7 +27,10 @@ def definition_type(signature):
def params_to_list(params): def params_to_list(params):
if "tuple" in params.keys(): if "tuple" in params.keys():
tuple_item = nodes.list_item(text="tuple") tuple_item = nodes.list_item()
if "name" in params.keys():
tuple_item += nodes.paragraph(text=params["name"])
tuple_item += nodes.paragraph(text="Tuple:")
tuple_list = nodes.bullet_list() tuple_list = nodes.bullet_list()
for io in params["tuple"]: for io in params["tuple"]:
tuple_list += params_to_list(io) tuple_list += params_to_list(io)