From 3cb3f58084043533a55c72c43453692ba972d864 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 28 Jan 2023 17:22:26 +0100 Subject: Another typing pass --- libmat2/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat2/archive.py') 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): # pylint: disable=unused-argument return member - def get_meta(self) -> dict[str, Union[str, Dict]]: + def get_meta(self) -> Dict[str, Union[str, Dict]]: meta = dict() # type: Dict[str, Union[str, Dict]] with self.archive_class(self.filename) as zin: @@ -170,7 +170,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): # Sort the items to process, to reduce fingerprinting, # and keep them in the `items` variable. - items = list() # type: list[ArchiveMember] + items = list() # type: List[ArchiveMember] for item in sorted(self._get_all_members(zin), key=self._get_member_name): # Some fileformats do require to have the `mimetype` file # as the first file in the archive. -- cgit v1.3