Skip to content

Commit

Permalink
Fix return type for SSHClientConnection.create_process()
Browse files Browse the repository at this point in the history
The create_process() call in SSHClientConnection had an incomplete
return type of SSHClientProcess, when it really should have been
SSHClientProcess[AnyStr] to match the AnyStr appearing in the
"input" argument. Thanks go to Matthew Bradbury for reporting
this issue.
  • Loading branch information
ronf committed Nov 7, 2023
1 parent 4d8f2a4 commit f67234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncssh/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4061,7 +4061,7 @@ async def create_process(self, *args: object,
stderr: ProcessTarget = PIPE,
bufsize: int = io.DEFAULT_BUFFER_SIZE,
send_eof: bool = True, recv_eof: bool = True,
**kwargs: object) -> SSHClientProcess:
**kwargs: object) -> SSHClientProcess[AnyStr]:
"""Create a process on the remote system
This method is a coroutine wrapper around :meth:`create_session`
Expand Down

0 comments on commit f67234f

Please sign in to comment.