Fix: sphinx_doc_gen.py syntax error while generating PyDoc

Ref !130085
This commit is contained in:
nutti
2024-11-10 23:34:16 +11:00
committed by Campbell Barton
parent ab051e1f17
commit 1c8669f8c9

View File

@@ -1658,7 +1658,7 @@ def pyrna2sphinx(basepath):
del key, descr
for func in struct.functions:
args_kw_only_index = next((i for i in i, prop in enumerate(func.args) if not prop.is_required), -1)
args_kw_only_index = next((i for i, prop in enumerate(func.args) if not prop.is_required), -1)
if args_kw_only_index == -1:
args_str = ", ".join(prop.get_arg_default(force=False) for prop in func.args)
else: