diff --git a/test-data/stdlib-samples/3.2/subprocess.py b/test-data/stdlib-samples/3.2/subprocess.py index 5f2ed29116be..70f5c8d700b6 100644 --- a/test-data/stdlib-samples/3.2/subprocess.py +++ b/test-data/stdlib-samples/3.2/subprocess.py @@ -1403,9 +1403,9 @@ def _dup2(a: int, b: int) -> None: def _handle_exitstatus( self, sts: int, _WIFSIGNALED: Callable[[int], bool] = os.WIFSIGNALED, - _WTERMSIG: Callable[[int], bool] = os.WTERMSIG, + _WTERMSIG: Callable[[int], int] = os.WTERMSIG, _WIFEXITED: Callable[[int], bool] = os.WIFEXITED, - _WEXITSTATUS: Callable[[int], bool] = os.WEXITSTATUS) -> None: + _WEXITSTATUS: Callable[[int], int] = os.WEXITSTATUS) -> None: # This method is called (indirectly) by __del__, so it cannot # refer to anything outside of its local scope.""" if _WIFSIGNALED(sts): @@ -1583,7 +1583,7 @@ def _communicate_with_select(self, input: Any) -> Tuple[List[bytes], input_offset = 0 while read_set or write_set: try: - rlist, wlist, xlist = select.select(read_set, write_set, cast(List[object], [])) + rlist, wlist, xlist = select.select(read_set, write_set, []) except select.error as e: if e.args[0] == errno.EINTR: continue diff --git a/test-data/stdlib-samples/3.2/test/test_subprocess.py b/test-data/stdlib-samples/3.2/test/test_subprocess.py index d0d5ebe9d8e9..772d8cc416e4 100644 --- a/test-data/stdlib-samples/3.2/test/test_subprocess.py +++ b/test-data/stdlib-samples/3.2/test/test_subprocess.py @@ -1291,7 +1291,7 @@ def kill_p2() -> None: p1.stdin.write(data) p1.stdin.close() - readfiles, ignored1, ignored2 = select.select([p2.stdout], cast(List[object], []), cast(List[object], []), 10) + readfiles, ignored1, ignored2 = select.select([p2.stdout], [], [], 10) self.assertTrue(readfiles, "The child hung") self.assertEqual(p2.stdout.read(), data) diff --git a/typeshed b/typeshed index 48920fea7ee6..03bfcee0b85d 160000 --- a/typeshed +++ b/typeshed @@ -1 +1 @@ -Subproject commit 48920fea7ee6c1d413fba12fe709c652da065393 +Subproject commit 03bfcee0b85d27018ad0a71a8b5b4439fa99cb80