mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-12-22 11:18:16 +00:00
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:
parent
1b3180e3ab
commit
33489aa277
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ def definition_type(signature):
|
|||
|
||||
def params_to_list(params):
|
||||
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()
|
||||
for io in params["tuple"]:
|
||||
tuple_list += params_to_list(io)
|
||||
|
|
Loading…
Reference in a new issue