diff --git a/stdlib/2/os/__init__.pyi b/stdlib/2/os/__init__.pyi index 4f7575d0d..9c4c91444 100644 --- a/stdlib/2/os/__init__.pyi +++ b/stdlib/2/os/__init__.pyi @@ -217,12 +217,12 @@ def popen2(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any]]: ... def popen3(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any], IO[Any]]: ... def popen4(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any]]: ... -def spawnl(mode: int, path: _PathType, arg0: _PathType, *args: _PathType) -> int: ... -def spawnle(mode: int, path: _PathType, arg0: _PathType, +def spawnl(mode: int, path: _PathType, arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> int: ... +def spawnle(mode: int, path: _PathType, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise sig -def spawnlp(mode: int, file: _PathType, arg0: _PathType, - *args: _PathType) -> int: ... # Unix only TODO -def spawnlpe(mode: int, file: _PathType, arg0: _PathType, *args: Any) -> int: +def spawnlp(mode: int, file: _PathType, arg0: Union[bytes, Text], + *args: Union[bytes, Text]) -> int: ... # Unix only TODO +def spawnlpe(mode: int, file: _PathType, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise signature; Unix only TODO def spawnv(mode: int, path: _PathType, args: List[Union[bytes, Text]]) -> int: ... def spawnve(mode: int, path: _PathType, args: List[Union[bytes, Text]], diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index ad537c9a3..ccd69a658 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -335,12 +335,12 @@ class popen(_TextIOWrapper): bufsize: int = ...) -> None: ... def close(self) -> Any: ... # may return int -def spawnl(mode: int, path: _PathType, arg0: _PathType, *args: _PathType) -> int: ... -def spawnle(mode: int, path: _PathType, arg0: _PathType, +def spawnl(mode: int, path: _PathType, arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> int: ... +def spawnle(mode: int, path: _PathType, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise sig -def spawnlp(mode: int, file: _PathType, arg0: _PathType, - *args: _PathType) -> int: ... # Unix only TODO -def spawnlpe(mode: int, file: _PathType, arg0: _PathType, *args: Any) -> int: +def spawnlp(mode: int, file: _PathType, arg0: Union[bytes, Text], + *args: Union[bytes, Text]) -> int: ... # Unix only TODO +def spawnlpe(mode: int, file: _PathType, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise signature; Unix only TODO def spawnv(mode: int, path: _PathType, args: List[Union[bytes, Text]]) -> int: ... def spawnve(mode: int, path: _PathType, args: List[Union[bytes, Text]],