From 5c33b290ae2727275ac4ba2128f17fa757f0e7c8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 20 Jul 2019 15:28:39 +0200 Subject: [PATCH] Fix mypy --- libmat2/archive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmat2/archive.py b/libmat2/archive.py index 15f9d49..9897c10 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py @@ -47,8 +47,9 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): def __init__(self, filename): super().__init__(filename) - self.archive_class = None # type: Optional[ArchiveClass] - self.member_class = None # type: Optional[ArchiveMember] + # We ignore typing here because mypy is too stupid + self.archive_class = None # type: ignore + self.member_class = None # type: ignore # Those are the files that have a format that _isn't_ # supported by MAT2, but that we want to keep anyway.