From c3db6c27c4c5ac2e7e096d13ca4e801042864555 Mon Sep 17 00:00:00 2001 From: John Yang Date: Sat, 29 Apr 2023 23:46:51 -0400 Subject: [PATCH] api: update return type of `diff` endpoint Signed-off-by: John Yang --- docker/api/container.py | 3 ++- docker/models/containers.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/api/container.py b/docker/api/container.py index 9a25b21489..fef760300e 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -678,7 +678,8 @@ def diff(self, container): container (str): The container to diff Returns: - (str) + (list) A list of dictionaries containing the attributes `Path` + and `Kind`. Raises: :py:class:`docker.errors.APIError` diff --git a/docker/models/containers.py b/docker/models/containers.py index f451cf3fe7..2eeefda1ee 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -141,7 +141,8 @@ def diff(self): Inspect changes on a container's filesystem. Returns: - (str) + (list) A list of dictionaries containing the attributes `Path` + and `Kind`. Raises: :py:class:`docker.errors.APIError`