summaryrefslogtreecommitdiff
path: root/libmat2/archive.py
diff options
context:
space:
mode:
authorjvoisin2023-01-28 17:22:26 +0100
committerjvoisin2023-01-28 17:22:26 +0100
commit3cb3f58084043533a55c72c43453692ba972d864 (patch)
tree473767b2bdbf6238a30356fb8aa3512669d681a8 /libmat2/archive.py
parent39fb254e019c920516bb317d4b48a8de7cac850e (diff)
Another typing pass
Diffstat (limited to 'libmat2/archive.py')
-rw-r--r--libmat2/archive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py
index cbedcd2..76679e6 100644
--- a/libmat2/archive.py
+++ b/libmat2/archive.py
@@ -128,7 +128,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
128 # pylint: disable=unused-argument 128 # pylint: disable=unused-argument
129 return member 129 return member
130 130
131 def get_meta(self) -> dict[str, Union[str, Dict]]: 131 def get_meta(self) -> Dict[str, Union[str, Dict]]:
132 meta = dict() # type: Dict[str, Union[str, Dict]] 132 meta = dict() # type: Dict[str, Union[str, Dict]]
133 133
134 with self.archive_class(self.filename) as zin: 134 with self.archive_class(self.filename) as zin:
@@ -170,7 +170,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
170 170
171 # Sort the items to process, to reduce fingerprinting, 171 # Sort the items to process, to reduce fingerprinting,
172 # and keep them in the `items` variable. 172 # and keep them in the `items` variable.
173 items = list() # type: list[ArchiveMember] 173 items = list() # type: List[ArchiveMember]
174 for item in sorted(self._get_all_members(zin), key=self._get_member_name): 174 for item in sorted(self._get_all_members(zin), key=self._get_member_name):
175 # Some fileformats do require to have the `mimetype` file 175 # Some fileformats do require to have the `mimetype` file
176 # as the first file in the archive. 176 # as the first file in the archive.