mitmproxy / mitmproxy/pdoc

Multiple reference duplication when loading docstring of function

Open
#660 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug upstream
Dominant language
Python
Stars
2.5k
Forks
228
PR merge metrics
No merged PRs in 30d

Description

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:
  1. 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked .github/workflows/docs.yml to identify the pdoc version and documentation build command. Reproduce the generated page for orthonormalpolar2D and compare its rendered references with the source docstring. Done means the documented references appear once rather than duplicated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.