Skip to content

Commit ff4ab5e

Browse files
committed
ssh: fix pyrefly complaining
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
1 parent aeb6c11 commit ff4ab5e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libkirk/ssh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def __init__(self, iobuffer: Optional[IOBuffer] = None) -> None:
3232
self._iobuffer = iobuffer
3333
self._panic = False
3434

35-
# pyrefly: ignore[bad-override]
36-
def data_received(self, data: str, _: asyncssh.DataType) -> None:
35+
def data_received(self, data: str, datatype: asyncssh.DataType) -> None:
3736
"""
3837
Override default data_received callback, storing stdout/stderr inside
3938
a buffer and checking for kernel panic.
@@ -58,6 +57,8 @@ def get_output(self) -> List[str]:
5857
Return the list containing stored stdout/stderr messages.
5958
"""
6059
return self._output
60+
61+
6162
except ModuleNotFoundError:
6263
pass
6364

0 commit comments

Comments
 (0)