mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 08:52:13 -05:00
BUG: Fix check for meth
This commit is contained in:
1 parent
ee4c7d3a68
commit
79d8bfb9e0
1 file changed
+1
-1
@@ -726,7 +726,7 @@ def getdoc(obj: Any, attrgetter: Callable = safe_getattr,
|
||||
# This tries to obtain the docstring from super classes.
|
||||
for basecls in getattr(cls, '__mro__', []):
|
||||
meth = safe_getattr(basecls, name, None)
|
||||
if meth:
|
||||
if meth is not None:
|
||||
doc = inspect.getdoc(meth)
|
||||
if doc:
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user