mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
Make mypy happy
This commit is contained in:
@@ -209,7 +209,7 @@ class ReadFileWithProgressReporting(io.FileIO): # {{{
|
||||
def __len__(self) -> int:
|
||||
return self._total
|
||||
|
||||
def read(self, size: int = -1) -> bytes:
|
||||
def read(self, size: Optional[int] = -1) -> bytes:
|
||||
data = io.FileIO.read(self, size)
|
||||
if data:
|
||||
self.report_progress(len(data))
|
||||
|
||||
Reference in New Issue
Block a user