Skip to content

Commit cb592d4

Browse files
authored
Fix docker exec types (#15097)
1 parent 1df82ed commit cb592d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stubs/docker/docker/api/exec_api.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ExecApiMixin:
3232
stream: bool = False,
3333
socket: bool = False,
3434
demux: bool = False,
35-
) -> str: ...
35+
) -> bytes: ...
3636
@overload
3737
def exec_start(
3838
self, exec_id: str, detach: Literal[False], tty: bool, stream: bool, socket: Literal[True], demux: bool = False
@@ -51,7 +51,7 @@ class ExecApiMixin:
5151
@overload
5252
def exec_start(
5353
self, exec_id: str, detach: Literal[False], tty: bool, stream: Literal[True], socket: Literal[False], demux: Literal[True]
54-
) -> CancellableStream[tuple[str | None, str | None]]: ...
54+
) -> CancellableStream[tuple[bytes | None, bytes | None]]: ...
5555
@overload
5656
def exec_start(
5757
self,
@@ -62,7 +62,7 @@ class ExecApiMixin:
6262
*,
6363
stream: Literal[True],
6464
demux: Literal[True],
65-
) -> CancellableStream[tuple[str | None, str | None]]: ...
65+
) -> CancellableStream[tuple[bytes | None, bytes | None]]: ...
6666
@overload
6767
def exec_start(
6868
self,
@@ -93,7 +93,7 @@ class ExecApiMixin:
9393
stream: Literal[False],
9494
socket: Literal[False],
9595
demux: Literal[True],
96-
) -> tuple[str | None, str | None]: ...
96+
) -> tuple[bytes | None, bytes | None]: ...
9797
@overload
9898
def exec_start(
9999
self,
@@ -104,7 +104,7 @@ class ExecApiMixin:
104104
socket: Literal[False] = False,
105105
*,
106106
demux: Literal[True],
107-
) -> tuple[str | None, str | None]: ...
107+
) -> tuple[bytes | None, bytes | None]: ...
108108
@overload
109109
def exec_start(
110110
self,
@@ -130,7 +130,7 @@ class ExecApiMixin:
130130
| _BufferedReaderStream
131131
| SSHSocket
132132
| CancellableStream[bytes]
133-
| CancellableStream[tuple[str | None, str | None]]
134-
| tuple[str | None, str | None]
133+
| CancellableStream[tuple[bytes | None, bytes | None]]
134+
| tuple[bytes | None, bytes | None]
135135
| bytes
136136
): ...

0 commit comments

Comments
 (0)