Skip to content

Commit 0cb8099

Browse files
committed
[docker-py] Fix exec_start return sub-type on stream
1 parent cdb3e86 commit 0cb8099

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

stubs/docker/docker/api/exec_api.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ExecApiMixin:
7272
stream: Literal[True],
7373
socket: Literal[False],
7474
demux: Literal[False],
75-
) -> CancellableStream[str]: ...
75+
) -> CancellableStream[bytes]: ...
7676
@overload
7777
def exec_start(
7878
self,
@@ -83,7 +83,7 @@ class ExecApiMixin:
8383
stream: Literal[True],
8484
socket: Literal[False] = False,
8585
demux: Literal[False] = False,
86-
) -> CancellableStream[str]: ...
86+
) -> CancellableStream[bytes]: ...
8787
@overload
8888
def exec_start(
8989
self,
@@ -114,7 +114,7 @@ class ExecApiMixin:
114114
stream: Literal[False] = False,
115115
socket: Literal[False] = False,
116116
demux: Literal[False] = False,
117-
) -> str: ...
117+
) -> bytes: ...
118118
@overload
119119
def exec_start(
120120
self,
@@ -129,7 +129,8 @@ class ExecApiMixin:
129129
| SocketIO
130130
| _BufferedReaderStream
131131
| SSHSocket
132-
| CancellableStream[str]
132+
| CancellableStream[bytes]
133133
| CancellableStream[tuple[str | None, str | None]]
134134
| tuple[str | None, str | None]
135+
| bytes
135136
): ...

0 commit comments

Comments
 (0)