From aa292318e92eee5f99fa5701e4a84ae7bd0bdc4c Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 27 Jun 2009 17:40:32 +0000 Subject: docs: fill in stub Methods/Attributes sections if they are omitted --- doc/sphinxext/docscrape_sphinx.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doc/sphinxext/docscrape_sphinx.py') diff --git a/doc/sphinxext/docscrape_sphinx.py b/doc/sphinxext/docscrape_sphinx.py index 8b93459d5..12907731e 100644 --- a/doc/sphinxext/docscrape_sphinx.py +++ b/doc/sphinxext/docscrape_sphinx.py @@ -70,9 +70,7 @@ class SphinxDocString(NumpyDocString): others = [] for param, param_type, desc in self[name]: param = param.strip() - if not self._obj or \ - (hasattr(self._obj, param) and - getattr(getattr(self._obj, param), '__doc__', None)): + if not self._obj or hasattr(self._obj, param): autosum += [" %s%s" % (prefix, param)] else: others.append((param, param_type, desc)) -- cgit v1.2.1