From cc5be8608b49d74a633b80a95a49a018d4dcd477 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 28 Aug 2022 22:29:06 +0200 Subject: Simplify the typing annotations --- libmat2/epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat2/epub.py') 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 import uuid import zipfile import xml.etree.ElementTree as ET # type: ignore -from typing import Dict, Any +from typing import Any from . import archive, office @@ -37,7 +37,7 @@ class EPUBParser(archive.ZipParser): if member_name.endswith('META-INF/encryption.xml'): raise ValueError('the file contains encrypted fonts') - def _specific_get_meta(self, full_path, file_path) -> Dict[str, Any]: + def _specific_get_meta(self, full_path, file_path) -> dict[str, Any]: if not file_path.endswith('.opf'): return {} -- cgit v1.3