From ea7ec3ec5c227a576719aa25231f1099c18a6d5d Mon Sep 17 00:00:00 2001 From: Simon Magnin-Feysot <simon.magnin-feysot@nbs-system.com> Date: Thu, 11 Oct 2018 17:08:54 +0200 Subject: [PATCH] mypy happy ? --- mat2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mat2 b/mat2 index b06e65e..e31791f 100755 --- a/mat2 +++ b/mat2 @@ -62,11 +62,11 @@ def show_meta(filename: str): return p, mtype = parser_factory.get_parser(filename) # type: ignore - print("[+] Metadata for %s:" % filename) - metadata = p.get_meta().items() if p is None: print("[-] %s's format (%s) is not supported" % (filename, mtype)) return + print("[+] Metadata for %s:" % filename) + metadata = p.get_meta().items() # type: dict __print_meta(metadata) -- GitLab