mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix typing issues pointed out by updated mypy
This commit is contained in:
@@ -137,7 +137,7 @@ class ReadFileWithProgressReporting(io.FileIO): # {{{
|
||||
def __len__(self) -> int:
|
||||
return self._total
|
||||
|
||||
def read(self, size: int = -1) -> Optional[bytes]:
|
||||
def read(self, size: int = -1) -> bytes:
|
||||
data = io.FileIO.read(self, size)
|
||||
if data:
|
||||
self.report_progress(len(data))
|
||||
|
||||
Reference in New Issue
Block a user