sphinx-doc/sphinx

Partial functions are not documented when the original function comes from a different module

Open

#8.550 aberto em 17 de dez. de 2020

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (1.985 forks)batch import
extensions:autodochelp wantedtype:bug

Métricas do repositório

Stars
 (5.625 stars)
Métricas de merge de PR
 (Mesclagem média 10d 11h) (11 fundiu PRs em 30d)

Description

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 image 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

Guia do colaborador