summaryrefslogtreecommitdiff
path: root/libmat2/office.py
diff options
context:
space:
mode:
authorjvoisin2018-10-12 11:58:01 +0200
committerjvoisin2018-10-12 14:32:09 +0200
commit2ba38dd2a18ab57ed7aac7ccdd6a42ff5e4d4eb7 (patch)
tree7fe800485f6ea47b21f63195c6dfc2f32e675bfe /libmat2/office.py
parentb832a5941458083dd6147efb652036552f95b786 (diff)
Bump mypy typing coverage
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.