From a3bc1467dee14dd4726a83af2fb1a4cb89cbf53b Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 16 Feb 2013 16:42:46 +0200 Subject: BUG: numpydoc: check that it works with sub-classes --- doc/sphinxext/numpydoc/docscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext/numpydoc/docscrape.py') diff --git a/doc/sphinxext/numpydoc/docscrape.py b/doc/sphinxext/numpydoc/docscrape.py index e4bf308b5..8f26797fe 100644 --- a/doc/sphinxext/numpydoc/docscrape.py +++ b/doc/sphinxext/numpydoc/docscrape.py @@ -511,7 +511,7 @@ class ClassDoc(NumpyDocString): return [name for name,func in inspect.getmembers(self._cls) if ((not name.startswith('_') or name in self.extra_public_methods) - and callable(func))] + and callable(func) and not isinstance(func, type))] @property def properties(self): -- cgit v1.2.1