pdoc3 / pdoc3/pdoc

pdoc adds numpy functions to the html of one of my modules

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

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

Hi!

I just installed pdoc3 in an Anaconda virtual environment and generated the htmls of a group of modules. The html are all generated but I get the next user warning in the process:

_html_mako:329: UserWarning: Error handling return annotation for <Function 'morphoHeart_modules.morphoHeart_funcContours.rand'>
_html_mako:329: UserWarning: Error handling return annotation for <Function 'morphoHeart_modules.morphoHeart_funcContours.randn'>

and when I open the module (morphoHeart_funcContours) a lot of functions from numpy.random have been added to the module. See images below.

image

image

I double checked and I don't use the random functions of numpy anywhere and any of my variables have a name similar to rand.
Is there a way I can fix this?

Hope to hear from you soon.
best,
Juliana

Additional info
  • pdoc version: 0.9.2

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

The report names no repository files or tests. Start by reproducing the warning with pdoc3 0.9.2 in an Anaconda environment on the reported module, then trace how its imported numpy.random functions enter the generated HTML. Done means the warnings are resolved and unrelated numpy.random functions no longer appear in the module documentation.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.