BUG: Fix check for meth

This commit is contained in:
Eric Larson committed 2020-05-28 13:21:00 -04:00
1 parent ee4c7d3a68
commit 79d8bfb9e0
1 file changed
+1 -1
+1 -1
View File
@@ -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