1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Please mypy

This commit is contained in:
jvoisin 2018-09-30 19:55:17 +02:00
parent e342671ead
commit 81a3881aa4

View File

@ -166,7 +166,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
removed_fnames = set()
with zipfile.ZipFile(self.filename) as zin:
for fname in [item.filename for item in zin.infolist()]:
if any(map(lambda r: r.search(fname), self.files_to_omit)):
if any(map(lambda r: r.search(fname), self.files_to_omit)): # type: ignore
removed_fnames.add(fname)
root = tree.getroot()