Typeshed currently has these declarations in io.pyi for FileIO.
def write(self, b: ReadableBuffer, /) -> int: ...
def read(self, size: int = -1, /) -> bytes: ...
Shouldn't these return int | None and bytes | None? A FileIO is non-blocking mode can return None from these methods, yes?
Typeshed currently has these declarations in
io.pyiforFileIO.Shouldn't these return
int | Noneandbytes | None? AFileIOis non-blocking mode can returnNonefrom these methods, yes?