From 79d8bfb9e03216c99ba2e734d425361b87ec2f84 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Fri, 22 May 2020 11:55:14 -0400 Subject: [PATCH] BUG: Fix check for meth --- sphinx/util/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 6ba698eed9..15f0d66e27 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -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