Make mypy happy.

This commit is contained in:
Felix Fontein
2026-10-02 17:17:36 +02:00
parent 9eec96c676
commit 82262b5d34
+1 -1
View File
@@ -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: