diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-08-17 02:06:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-17 02:06:20 +0900 |
commit | 2604920232c9c7588f2a6f1ebfa15c506661cb10 (patch) | |
tree | a75740101d8592cee4b9629b31f377dbd2622c02 /tests/roots/test-ext-autodoc/target/partialfunction.py | |
parent | b926ee8aeb620dfaa3bd28566b3cf7f900c71def (diff) | |
parent | c4fa1aed340c32ff9b4b6cb2d5a6302951dea073 (diff) | |
download | sphinx-git-2604920232c9c7588f2a6f1ebfa15c506661cb10.tar.gz |
Merge pull request #5305 from tk0miya/5211_autodoc_for_partial_functions
Fix #5211: autodoc: No docs generated for functools.partial functions
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/partialfunction.py')
-rw-r--r-- | tests/roots/test-ext-autodoc/target/partialfunction.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/roots/test-ext-autodoc/target/partialfunction.py b/tests/roots/test-ext-autodoc/target/partialfunction.py new file mode 100644 index 000000000..727a62680 --- /dev/null +++ b/tests/roots/test-ext-autodoc/target/partialfunction.py @@ -0,0 +1,11 @@ +from functools import partial + + +def func1(): + """docstring of func1""" + pass + + +func2 = partial(func1) +func3 = partial(func1) +func3.__doc__ = "docstring of func3" |