mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 08:34:23 +08:00
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.
This commit is contained in:
committed by
Guido van Rossum
parent
023afbc098
commit
8afc1b7a08
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user