Widen the annotation of os.write to include buffer. (#3109)

This commit is contained in:
Benjamin Peterson
2019-08-10 13:15:46 -07:00
committed by Jelle Zijlstra
parent 0dc3bf941a
commit baea5a7bc3

View File

@@ -192,7 +192,7 @@ def lseek(fd: int, pos: int, how: int) -> int: ...
def open(file: _PathType, flags: int, mode: int = ...) -> int: ...
def pipe() -> Tuple[int, int]: ...
def read(fd: int, n: int) -> bytes: ...
def write(fd: int, string: bytes) -> int: ...
def write(fd: int, string: Union[bytes, buffer]) -> int: ...
def access(path: _PathType, mode: int) -> bool: ...
def chdir(path: _PathType) -> None: ...
def fchdir(fd: int) -> None: ...