mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Improve signature of communicate().
The input type can be bytes or unicode, the return types are always Optional bytes.
This commit is contained in:
@@ -87,8 +87,7 @@ class Popen:
|
||||
|
||||
def poll(self) -> int: ...
|
||||
def wait(self) -> int: ...
|
||||
# Return str/bytes
|
||||
def communicate(self, input: Union[str, unicode] = ...) -> Tuple[str, str]: ...
|
||||
def communicate(self, input: Union[bytes, unicode] = ...) -> Tuple[Optional[bytes], Optional[bytes]]: ...
|
||||
def send_signal(self, signal: int) -> None: ...
|
||||
def terminate(self) -> None: ...
|
||||
def kill(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user