From 82262b5d34ae4f36fde4f2c1c38aef27b35b981e Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 2 Oct 2026 17:17:36 +0200 Subject: [PATCH] Make mypy happy. --- plugins/module_utils/_api/utils/socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/_api/utils/socket.py b/plugins/module_utils/_api/utils/socket.py index 8ba27238..b62b2ba7 100644 --- a/plugins/module_utils/_api/utils/socket.py +++ b/plugins/module_utils/_api/utils/socket.py @@ -68,7 +68,7 @@ def read(socket: SocketLike, n: int = 4096) -> bytes | None: except Exception as e: is_pipe_ended = ( isinstance(socket, NpipeSocket) # type: ignore[unreachable] - and len(e.args) > 0 + and len(e.args) > 0 # type: ignore[unreachable] and e.args[0] == NPIPE_ENDED ) if is_pipe_ended: