Skip to content

Commit d2ca658

Browse files
authored
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.
1 parent a4b7c36 commit d2ca658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/docker/docker/models/containers.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Container(Model):
3535
def diff(self): ...
3636
def exec_run(
3737
self,
38-
cmd,
38+
cmd: str | list[str],
3939
stdout: bool = True,
4040
stderr: bool = True,
4141
stdin: bool = False,
@@ -51,7 +51,7 @@ class Container(Model):
5151
) -> ExecResult: ...
5252
def export(self, chunk_size: int | None = 2097152) -> str: ...
5353
def get_archive(
54-
self, path, chunk_size: int | None = 2097152, encode_stream: bool = False
54+
self, path: str, chunk_size: int | None = 2097152, encode_stream: bool = False
5555
) -> tuple[Incomplete, Incomplete]: ...
5656
def kill(self, signal: Incomplete | None = None): ...
5757
@overload

0 commit comments

Comments
 (0)