positional_only = False
break
- arg_types = []
+ param_types = []
signature = []
for i, arg in enumerate(args):
name, type, type_link, default = arg
# Don't include redundant type for the self argument
if i == 0 and name == 'self':
param.type, param.type_link = None, None
- arg_types += [None]
+ param_types += [None]
signature += ['self']
else:
param.type, param.type_link = type, type_link
- arg_types += [type]
+ param_types += [type]
signature += ['{}: {}'.format(name, type)]
if default:
# If the type is a registered enum, try to make a link to
# Format the anchor. Pybind11 functions are sometimes overloaded,
# thus name alone is not enough.
- out.id = state.config['ID_FORMATTER'](EntryType.OVERLOADED_FUNCTION, entry.path[-1:] + arg_types)
+ out.id = state.config['ID_FORMATTER'](EntryType.OVERLOADED_FUNCTION, entry.path[-1:] + param_types)
# Get summary and details. Passing the signature as well, so
# different overloads can (but don't need to) have different docs.
docutils.utils.assemble_option_dict = _docutils_assemble_option_dict
publish_rst(state, f.read())
+
docutils.utils.extract_options = prev_extract_options
docutils.utils.assemble_option_dict = prev_assemble_option_dict