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/harmless.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat2/harmless.py') diff --git a/libmat2/harmless.py b/libmat2/harmless.py index f646099..fad0ef8 100644 --- a/libmat2/harmless.py +++ b/libmat2/harmless.py @@ -1,5 +1,5 @@ import shutil -from typing import Dict +from typing import Dict, Union from . import abstract @@ -7,7 +7,7 @@ class HarmlessParser(abstract.AbstractParser): """ This is the parser for filetypes that can not contain metadata. """ mimetypes = {'text/plain', 'image/x-ms-bmp'} - def get_meta(self) -> Dict[str, str]: + def get_meta(self) -> Dict[str, Union[str, dict]]: return dict() def remove_all(self) -> bool: -- cgit v1.3