From ba0550c4645c3e73f32f7cd77bbe3cc528f76ad6 Mon Sep 17 00:00:00 2001 From: Jens Vagelpohl Date: Wed, 4 Jan 2023 13:19:17 +0100 Subject: [PATCH] - use cheaper check as suggested by @teythoon --- src/zope/component/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zope/component/interfaces.py b/src/zope/component/interfaces.py index 0029a59..9819457 100644 --- a/src/zope/component/interfaces.py +++ b/src/zope/component/interfaces.py @@ -367,7 +367,7 @@ def _inherits_docs(func, iface): # doc can be None if the interpreter drops all docstrings when the # environment variable PYTHONOPTIMIZE is set 2. - if not doc: + if doc is None: return func # By adding the ..seealso:: we get a link from our overview page