Skip to content

bug: duplicate param entries in inventories #813

@pawamoy

Description

@pawamoy

Description of the bug

Parameters get a priority 2 duplicated entry with an erroneous trailing parenthesis in the generated inventory file. Example in mkdocstrings' own inventory file:

mkdocstrings.get_template_logger_function py:function 1 reference/api/#$ -
mkdocstrings.get_template_logger_function(logger_func) py:param 1 reference/api/#$ -
mkdocstrings.get_template_logger_function(logger_func)) py:param 2 reference/api/#mkdocstrings.get_template_logger_function(logger_func) -
mkdocstrings.get_template_path py:function 1 reference/api/#$ -
mkdocstrings.get_template_path(context) py:param 1 reference/api/#$ -
mkdocstrings.get_template_path(context)) py:param 2 reference/api/#mkdocstrings.get_template_path(context) -
mkdocstrings.makeExtension py:function 1 reference/api/#$ -

To Reproduce

I'll be the one investigating anyway 😎

Full traceback

N/A

Expected behavior

These duplicates shouldn't appear.

Environment information

Latest mkdocstrings.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions