From b180914208e069ba0d2e59cd9cacfbc5681d27c8 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 25 Jan 2016 16:19:29 -0800 Subject: [PATCH] Fix os.wait and os.waitpid annotations on python 2. --- stdlib/2.7/os/__init__.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/os/__init__.pyi b/stdlib/2.7/os/__init__.pyi index 73907d6bf..105d9dfe6 100644 --- a/stdlib/2.7/os/__init__.pyi +++ b/stdlib/2.7/os/__init__.pyi @@ -158,8 +158,8 @@ def nice(increment: int) -> int: ... def startfile(path: unicode, operation: str) -> None: ... def system(command: unicode) -> int: ... def times() -> Tuple[float, float, float, float, float]: ... -def wait() -> int: ... -def waitpid(pid: int, options: int) -> int: +def wait() -> Tuple[int, int]: ... # Unix only +def waitpid(pid: int, options: int) -> Tuple[int, int]: raise OSError() # TODO: wait3, wait4, W... def confstr(name: Union[str, int]) -> Optional[str]: ...