From 3cb3f58084043533a55c72c43453692ba972d864 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 28 Jan 2023 17:22:26 +0100 Subject: Another typing pass --- libmat2/office.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmat2/office.py') diff --git a/libmat2/office.py b/libmat2/office.py index 87a0b7e..f0ab404 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -148,7 +148,7 @@ class MSOfficeParser(ZipParser): return False xml_data = zin.read('[Content_Types].xml') - self.content_types = dict() # type: dict[str, str] + self.content_types = dict() # type: Dict[str, str] try: tree = ET.fromstring(xml_data) except ET.ParseError: @@ -429,7 +429,7 @@ class MSOfficeParser(ZipParser): return True - def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: + def _specific_get_meta(self, full_path: str, file_path: str) -> Dict[str, Any]: """ Yes, I know that parsing xml with regexp ain't pretty, be my guest and fix it if you want. @@ -509,7 +509,7 @@ class LibreOfficeParser(ZipParser): return False return True - def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: + def _specific_get_meta(self, full_path: str, file_path: str) -> Dict[str, Any]: """ Yes, I know that parsing xml with regexp ain't pretty, be my guest and fix it if you want. -- cgit v1.3