Fix missed type hints in docker containers.pyi (#13136)

Previously, `Container.exec_run` and `Container.get_archive` missed type hints on `cmd` and `path` arguments, respectively.
Added type hints based on docstring.
This commit is contained in:
Dun L
2024-12-28 13:14:27 +08:00
committed by GitHub
parent a4b7c36366
commit d2ca658a69

View File

@@ -35,7 +35,7 @@ class Container(Model):
def diff(self): ...
def exec_run(
self,
cmd,
cmd: str | list[str],
stdout: bool = True,
stderr: bool = True,
stdin: bool = False,
@@ -51,7 +51,7 @@ class Container(Model):
) -> ExecResult: ...
def export(self, chunk_size: int | None = 2097152) -> str: ...
def get_archive(
self, path, chunk_size: int | None = 2097152, encode_stream: bool = False
self, path: str, chunk_size: int | None = 2097152, encode_stream: bool = False
) -> tuple[Incomplete, Incomplete]: ...
def kill(self, signal: Incomplete | None = None): ...
@overload