pdoc
pdoc copied to clipboard
Multiple reference duplication when loading docstring of function
Problem Description
Hello - I am using pdoc to compile the docstring of all my methods in my API. But occasionally the references used in the docstring of a specific method are duplicated (or triplicated), and I'm not really sure why.
Please see here, where source code is shown to only contain 2 references, but the resultant pdoc compilation produces duplicates...
Steps to reproduce the behavior:
- I am using the github workflow described by a yml file
System Information
Unable to determine system pdoc version used by the yml file above.
Thank you so much! Matthew
This looks like an issue in the Markdown library we're using, markdown2.
This affects SQLAlchemy which doesn't like the repetitive import:
sqlalchemy.exc.InvalidRequestError: Table 'foo' is already defined for this MetaData instance.
Specify 'extend_existing=True' to redefine options and columns on an existing Table object.