mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Widen the annotation of os.write to include buffer. (#3109)
This commit is contained in:
committed by
Jelle Zijlstra
parent
0dc3bf941a
commit
baea5a7bc3
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user