From 89a21e81d9bfff97aecf914ced93b4769134c264 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sun, 20 Sep 2020 15:17:51 +0900 Subject: [PATCH] Workaround for mypy warning Signed-off-by: Hiroshi Miura --- py7zr/archiveinfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py7zr/archiveinfo.py b/py7zr/archiveinfo.py index 3bf53771..6ec218cb 100644 --- a/py7zr/archiveinfo.py +++ b/py7zr/archiveinfo.py @@ -930,7 +930,7 @@ def _encode_header(self, file: BinaryIO, afterheader: int, filters): # actual header start position startpos = file.tell() crcfile = WriteWithCrc(file) - headerstreams.write(crcfile) + headerstreams.write(crcfile) # type: ignore # noqa digest = crcfile.digest return startpos, digest @@ -944,12 +944,12 @@ def write(self, file: BinaryIO, afterheader: int, encoded=True, encrypted=False) startpos, headercrc = self._encode_header(file, afterheader, filters) else: crcfile = WriteWithCrc(file) - write_byte(crcfile, Property.HEADER) + write_byte(crcfile, Property.HEADER) # type: ignore # noqa if self.main_streams is not None: self.main_streams.write(crcfile) if self.files_info is not None: self.files_info.write(crcfile) - write_byte(crcfile, Property.END) + write_byte(crcfile, Property.END) # type: ignore headercrc = crcfile.digest endpos = file.tell() header_len = endpos - startpos