diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-06-14 17:03:57 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-06-14 17:03:57 +0900 |
commit | 0fb938ad38ef1599085323ac54721daa1ddf661c (patch) | |
tree | a9d74c3bdaa613eb297050e535f389d4024e755c /sphinx/ext/autodoc.py | |
parent | 2274bfc38bb777c6014733c9edc6022a8373268c (diff) | |
download | sphinx-git-0fb938ad38ef1599085323ac54721daa1ddf661c.tar.gz |
* add test and code comment for pull request #157
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 8766e391c..bd947b440 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -982,7 +982,10 @@ class DocstringStripSignatureMixin(DocstringSignatureMixin): # the feature is enabled result = self._find_signature() if result is not None: - self.retann = result[1] + # Discarding _args is a only difference with + # DocstringSignatureMixin.format_signature. + # Documenter.format_signature use self.args value to format. + _args, self.retann = result return Documenter.format_signature(self) |