mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[docker-py] Add fallback exec_start overload (#15098)
This commit is contained in:
committed by
GitHub
parent
ef2b90c67e
commit
61f2be3def
@@ -72,7 +72,7 @@ class ExecApiMixin:
|
||||
stream: Literal[True],
|
||||
socket: Literal[False],
|
||||
demux: Literal[False],
|
||||
) -> CancellableStream[str]: ...
|
||||
) -> CancellableStream[bytes]: ...
|
||||
@overload
|
||||
def exec_start(
|
||||
self,
|
||||
@@ -83,7 +83,7 @@ class ExecApiMixin:
|
||||
stream: Literal[True],
|
||||
socket: Literal[False] = False,
|
||||
demux: Literal[False] = False,
|
||||
) -> CancellableStream[str]: ...
|
||||
) -> CancellableStream[bytes]: ...
|
||||
@overload
|
||||
def exec_start(
|
||||
self,
|
||||
@@ -114,4 +114,23 @@ class ExecApiMixin:
|
||||
stream: Literal[False] = False,
|
||||
socket: Literal[False] = False,
|
||||
demux: Literal[False] = False,
|
||||
) -> str: ...
|
||||
) -> bytes: ...
|
||||
@overload
|
||||
def exec_start(
|
||||
self,
|
||||
exec_id: str,
|
||||
detach: bool = False,
|
||||
tty: bool = False,
|
||||
stream: bool = False,
|
||||
socket: bool = False,
|
||||
demux: bool = False,
|
||||
) -> (
|
||||
str
|
||||
| SocketIO
|
||||
| _BufferedReaderStream
|
||||
| SSHSocket
|
||||
| CancellableStream[bytes]
|
||||
| CancellableStream[tuple[str | None, str | None]]
|
||||
| tuple[str | None, str | None]
|
||||
| bytes
|
||||
): ...
|
||||
|
||||
Reference in New Issue
Block a user