aboutsummaryrefslogtreecommitdiff
path: root/deskutils/calibre/files/patch-src_calibre_db_notes_exim.py
blob: 5df66446d3d33cd7cd0ad4cb9a9329f405bc7691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/calibre/db/notes/exim.py.orig	2023-11-17 06:02:05 UTC
+++ src/calibre/db/notes/exim.py
@@ -41,7 +41,7 @@ def export_note(note_doc: str, get_resource) -> str:
     return html.tostring(root, encoding='unicode')
 
 
-def import_note(shtml: str | bytes, basedir: str, add_resource) -> tuple[str, str, set[str]]:
+def import_note(shtml: "str | bytes", basedir: str, add_resource) -> tuple[str, str, set[str]]:
     shtml = xml_to_unicode(shtml, strip_encoding_pats=True, assume_utf8=True)[0]
     basedir = os.path.normcase(get_long_path_name(os.path.abspath(basedir)) + os.sep)
     root = parse_html(shtml)