diff options
| author | jvoisin | 2022-08-28 22:29:06 +0200 |
|---|---|---|
| committer | jvoisin | 2022-08-28 22:29:06 +0200 |
| commit | cc5be8608b49d74a633b80a95a49a018d4dcd477 (patch) | |
| tree | 322c21ba2543831d5a1804ebce50a3f7c2391029 /libmat2/epub.py | |
| parent | 292f44c0861a57b54a289641ead7e59f158e307e (diff) | |
Simplify the typing annotations
Diffstat (limited to '')
| -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 | ||
