diff options
Diffstat (limited to 'libmat2/epub.py')
| -rw-r--r-- | libmat2/epub.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/epub.py b/libmat2/epub.py index be05562..7613d35 100644 --- a/libmat2/epub.py +++ b/libmat2/epub.py | |||
| @@ -3,7 +3,7 @@ import re | |||
| 3 | import uuid | 3 | import uuid |
| 4 | import zipfile | 4 | import zipfile |
| 5 | import xml.etree.ElementTree as ET # type: ignore | 5 | import xml.etree.ElementTree as ET # type: ignore |
| 6 | from typing import Dict, Any | 6 | from typing import Any |
| 7 | 7 | ||
| 8 | from . import archive, office | 8 | from . import archive, office |
| 9 | 9 | ||
| @@ -37,7 +37,7 @@ class EPUBParser(archive.ZipParser): | |||
| 37 | if member_name.endswith('META-INF/encryption.xml'): | 37 | if member_name.endswith('META-INF/encryption.xml'): |
| 38 | raise ValueError('the file contains encrypted fonts') | 38 | raise ValueError('the file contains encrypted fonts') |
| 39 | 39 | ||
| 40 | def _specific_get_meta(self, full_path, file_path) -> Dict[str, Any]: | 40 | def _specific_get_meta(self, full_path, file_path) -> dict[str, Any]: |
| 41 | if not file_path.endswith('.opf'): | 41 | if not file_path.endswith('.opf'): |
| 42 | return {} | 42 | return {} |
| 43 | 43 | ||
