From e3290b23bb3b9c4dbb0d5d0523f5001c7fad1db9 Mon Sep 17 00:00:00 2001 From: Kiryl Date: Wed, 3 Aug 2022 14:55:22 +0300 Subject: [PATCH] Fix annotation problem --- src/epub_converter/html_epub_processor.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/epub_converter/html_epub_processor.py b/src/epub_converter/html_epub_processor.py index 97be033..0abd38b 100644 --- a/src/epub_converter/html_epub_processor.py +++ b/src/epub_converter/html_epub_processor.py @@ -169,7 +169,9 @@ class HtmlEpubPreprocessor: @staticmethod def _tags_to_correspond_livecarta_tag(chapter_tag: BeautifulSoup, - rules: List[Dict[str, Union[List[str], str, int, Dict[str, Union[str, int]]]]]): + rules: List[Dict[str, + Union[List[str], str, Dict[str, + Union[str, List[Dict[str, str]]]]]]]): """ Function to replace all tags to correspond LiveCarta tags Parameters @@ -259,7 +261,10 @@ class HtmlEpubPreprocessor: tag.unwrap() @staticmethod - def _insert_tags_into_correspond_tags(chapter_tag: BeautifulSoup, rules: List[Dict[str, Union[List[str], str, Dict[str, Union[str, int]]]]]): + def _insert_tags_into_correspond_tags(chapter_tag: BeautifulSoup, + rules: List[Dict[str, + Union[List[str], str, Dict[str, + Union[str, List[Dict[str, str]]]]]]]): """ Function inserts tags into correspond tags Parameters