sphinx-doc/sphinx
在 GitHub 查看Partial functions are not documented when the original function comes from a different module
Open
#8,550 建立於 2020年12月17日
extensions:autodochelp wantedtype:bug
倉庫指標
- Star
- (5,625 star)
- PR 合併指標
- (平均合併 10天 11小時) (30 天內合併 11 個 PR)
描述
Describe the bug When using autodoc, partial functions do not appear in the HTML output if the original function (used to create the new partial function) comes from a different module.
To Reproduce Steps to reproduce the behavior:
$ git clone https://github.com/scganterh/sphinx_bug_partial_functions.git
$ cd sphinx_bug_partial_functions
$ pip install sphinx
$ make html
$ # open html/b.html and see that no documentation for the `b` function is generated.
Expected behavior
I expect to see the documentation for b.b generated the same way as the documentation for b.d.
Your project https://github.com/scganterh/sphinx_bug_partial_functions
Screenshots
You can see there is no entry for b.b.
Environment info
- OS: Linux
- Python version: 3.6.2
- Sphinx version: 3.3.1
- Sphinx extensions: sphinx.ext.autodoc
- Extra tools: Browser