mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user