mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Bring some things back to Union types
This commit is contained in:
@@ -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]],
|
||||
|
||||
@@ -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]],
|
||||
|
||||
Reference in New Issue
Block a user