From 4ea04f241ebd213cd6995a3a24b2c7e4f043fbf8 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Thu, 15 Jun 2023 23:17:32 -0500 Subject: [PATCH] Ensure tooltip is always a str --- autoapi/inheritance_diagrams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoapi/inheritance_diagrams.py b/autoapi/inheritance_diagrams.py index 02db48c..cb2e30f 100644 --- a/autoapi/inheritance_diagrams.py +++ b/autoapi/inheritance_diagrams.py @@ -86,7 +86,7 @@ class _AutoapiInheritanceGraph(sphinx.ext.inheritance_diagram.InheritanceGraph): tooltip = '"%s"' % doc.replace('"', '\\"') baselist = [] - all_classes[cls] = (nodename, fullname, baselist, tooltip) + all_classes[cls] = (nodename, fullname, baselist, tooltip or "") if fullname in top_classes: return