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?