From 2ba38dd2a18ab57ed7aac7ccdd6a42ff5e4d4eb7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 12 Oct 2018 11:58:01 +0200 Subject: Bump mypy typing coverage --- 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 32e7b75..c10664f 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -2,7 +2,7 @@ import logging import os import re import zipfile -from typing import Dict, Set, Pattern, Tuple +from typing import Dict, Set, Pattern, Tuple, Union import xml.etree.ElementTree as ET # type: ignore @@ -296,7 +296,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser): return True - def get_meta(self) -> Dict[str, str]: + def get_meta(self) -> Dict[str, Union[str, dict]]: """ Yes, I know that parsing xml with regexp ain't pretty, be my guest and fix it if you want. @@ -381,7 +381,7 @@ class LibreOfficeParser(ArchiveBasedAbstractParser): return False return True - def get_meta(self) -> Dict[str, str]: + def get_meta(self) -> Dict[str, Union[str, dict]]: """ Yes, I know that parsing xml with regexp ain't pretty, be my guest and fix it if you want. -- cgit v1.3