pdoc3 / pdoc

:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects
https://pdoc3.github.io/pdoc/
GNU Affero General Public License v3.0
1.12k stars 145 forks source link

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

Open jsanchez679 opened 3 years ago

jsanchez679 commented 3 years ago
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 _html_mako:329: UserWarning: Error handling return annotation for ``` 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](https://user-images.githubusercontent.com/10684503/106332886-8237dd80-627f-11eb-9a11-b69872816249.png) ![image](https://user-images.githubusercontent.com/10684503/106332933-98de3480-627f-11eb-8728-4747e2787f96.png) 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
kernc commented 3 years ago

Are you possibly importing from numpy.random import *?

It would be helpful if you can provide a minimal working example for the issue.

jsanchez679 commented 3 years ago

Hi, Thanks for your fast reply. I was importing another package with * and that was the one that was introducing those functions in the html. Thanks again, Juliana