summaryrefslogtreecommitdiff
path: root/libmat2/office.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/office.py')
-rw-r--r--libmat2/office.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index 32e7b75..c10664f 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -2,7 +2,7 @@ import logging
2import os 2import os
3import re 3import re
4import zipfile 4import zipfile
5from typing import Dict, Set, Pattern, Tuple 5from typing import Dict, Set, Pattern, Tuple, Union
6 6
7import xml.etree.ElementTree as ET # type: ignore 7import xml.etree.ElementTree as ET # type: ignore
8 8
@@ -296,7 +296,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
296 296
297 return True 297 return True
298 298
299 def get_meta(self) -> Dict[str, str]: 299 def get_meta(self) -> Dict[str, Union[str, dict]]:
300 """ 300 """
301 Yes, I know that parsing xml with regexp ain't pretty, 301 Yes, I know that parsing xml with regexp ain't pretty,
302 be my guest and fix it if you want. 302 be my guest and fix it if you want.
@@ -381,7 +381,7 @@ class LibreOfficeParser(ArchiveBasedAbstractParser):
381 return False 381 return False
382 return True 382 return True
383 383
384 def get_meta(self) -> Dict[str, str]: 384 def get_meta(self) -> Dict[str, Union[str, dict]]:
385 """ 385 """
386 Yes, I know that parsing xml with regexp ain't pretty, 386 Yes, I know that parsing xml with regexp ain't pretty,
387 be my guest and fix it if you want. 387 be my guest and fix it if you want.