Fix mypy failures

This commit is contained in:
Kovid Goyal
2022-03-12 08:28:43 +05:30
parent d5c48ddb94
commit ba1b3c3c2d
2 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ class PatchFile(StreamingJob):
def read_from_src(self, b: memoryview, pos: int) -> int:
self.src_file.seek(pos)
return self.src_file.readinto(b) # type: ignore
return self.src_file.readinto(b)
def close(self) -> None:
if not self.src_file.closed: