mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-10-27 16:59:18 +00:00
Make mypy happy.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user