Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Fix Bug: add parameter operation_config in parameter list (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannanwang1 authored and bianliu1013 committed Jun 30, 2017
1 parent 922bb39 commit bdf0937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import inspect
import re
from functools import partial
from itertools import zip_longest

try:
from subprocess import getoutput
Expand Down Expand Up @@ -461,7 +462,8 @@ def convert_module_to_package_if_needed(obj):
if('id' in arg_params[0] and arg_params[0]['id'] == 'self'):
# Support having `self` as an arg param, but not documented
arg_params = arg_params[1:]
for args, docs in zip(arg_params, doc_params):
# Zip 2 param lists until the long one is exhausted
for args, docs in zip_longest(arg_params, doc_params, fillvalue={}):
args.update(docs)
merged_params.append(args)
obj['syntax'].update(app.env.docfx_info_field_data[obj['uid']])
Expand Down

0 comments on commit bdf0937

Please sign in to comment.