From aaf68b7f98df7f886778395112267b9b0f6140bc Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 22 Feb 2023 21:05:19 +0200 Subject: [PATCH] api: note the data arg may also be a stream in `put_archive` (#2478) Signed-off-by: Aarni Koskela --- docker/api/container.py | 2 +- docker/models/containers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/api/container.py b/docker/api/container.py index 82a892288..9a25b2148 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -966,7 +966,7 @@ def put_archive(self, container, path, data): container (str): The container where the file(s) will be extracted path (str): Path inside the container where the file(s) will be extracted. Must exist. - data (bytes): tar data to be extracted + data (bytes or stream): tar data to be extracted Returns: (bool): True if the call succeeds. diff --git a/docker/models/containers.py b/docker/models/containers.py index c718bbeac..f451cf3fe 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -324,7 +324,7 @@ def put_archive(self, path, data): Args: path (str): Path inside the container where the file(s) will be extracted. Must exist. - data (bytes): tar data to be extracted + data (bytes or stream): tar data to be extracted Returns: (bool): True if the call succeeds.