mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Make appropriate Popen constructor args Optional (#457)
This commit is contained in:
committed by
Guido van Rossum
parent
cc1f92103d
commit
f209136b3c
@@ -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: ...
|
||||
|
||||
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user