Bring some things back to Union types

This commit is contained in:
David Euresti
2017-03-20 22:29:43 -07:00
parent a4d70e5b01
commit 2804788efa
2 changed files with 10 additions and 10 deletions

View File

@@ -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]],

View File

@@ -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]],