Make appropriate Popen constructor args Optional (#457)

This commit is contained in:
David Fisher
2016-08-08 20:14:13 -07:00
committed by Guido van Rossum
parent cc1f92103d
commit f209136b3c
2 changed files with 16 additions and 16 deletions

View File

@@ -72,17 +72,17 @@ class Popen:
def __init__(self,
args: Union[str, Sequence[str]],
bufsize: int = ...,
executable: str = ...,
stdin: _FILE = ...,
stdout: _FILE = ...,
stderr: _FILE = ...,
preexec_fn: Callable[[], Any] = ...,
executable: Optional[str] = ...,
stdin: Optional[_FILE] = ...,
stdout: Optional[_FILE] = ...,
stderr: Optional[_FILE] = ...,
preexec_fn: Optional[Callable[[], Any]] = ...,
close_fds: bool = ...,
shell: bool = ...,
cwd: str = ...,
env: Mapping[str, str] = ...,
cwd: Optional[str] = ...,
env: Optional[Mapping[str, str]] = ...,
universal_newlines: bool = ...,
startupinfo: Any = ...,
startupinfo: Optional[Any] = ...,
creationflags: int = ...) -> None: ...
def poll(self) -> int: ...

View File

@@ -208,17 +208,17 @@ class Popen:
def __init__(self,
args: Union[str, Sequence[str]],
bufsize: int = ...,
executable: str = ...,
stdin: Any = ...,
stdout: Any = ...,
stderr: Any = ...,
preexec_fn: Callable[[], Any] = ...,
executable: Optional[str] = ...,
stdin: Optional[Any] = ...,
stdout: Optional[Any] = ...,
stderr: Optional[Any] = ...,
preexec_fn: Optional[Callable[[], Any]] = ...,
close_fds: bool = ...,
shell: bool = ...,
cwd: str = ...,
env: Mapping[str, str] = ...,
cwd: Optional[str] = ...,
env: Optional[Mapping[str, str]] = ...,
universal_newlines: bool = ...,
startupinfo: Any = ...,
startupinfo: Optional[Any] = ...,
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,