From 8afc1b7a089ee37ddd3c524af0312b8f563c6aa4 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Sat, 26 Aug 2017 17:07:25 -0700 Subject: [PATCH] Change subprocess constants to be type int (#1577) This change modifies the PIPE, STDOUT, and DEVNULL constants in the subprocess module to be of type 'int'. Note that the Python 2 subprocess module was already typed this way; this commit is just updating the Python 3 subprocess module in the same way. --- stdlib/3/subprocess.pyi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index 75d19feae..c0a861333 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -238,11 +238,10 @@ else: ) -> Any: ... # morally: -> _TXT -# TODO types -PIPE = ... # type: Any -STDOUT = ... # type: Any +PIPE = ... # type: int +STDOUT = ... # type: int if sys.version_info >= (3, 3): - DEVNULL = ... # type: Any + DEVNULL = ... # type: int class SubprocessError(Exception): ... class TimeoutExpired(SubprocessError): ...