From 7698ef1eb9704e39f1386cc8b99c5fbd3a112645 Mon Sep 17 00:00:00 2001 From: David Grigg Date: Fri, 29 Dec 2023 21:09:41 +1100 Subject: [PATCH] Fixed return type to satisfy mypy check --- se/se_epub_generate_toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/se/se_epub_generate_toc.py b/se/se_epub_generate_toc.py index d1b10763..11d1ce8e 100644 --- a/se/se_epub_generate_toc.py +++ b/se/se_epub_generate_toc.py @@ -474,7 +474,7 @@ def get_toc_id_for_special_item(node: EasyXmlElement) -> str: toc_id = parent.get_attr("id") if toc_id: return toc_id - return None + return "" def get_level(node: EasyXmlElement, toc_list: list) -> int: