From eeb9ea1937ba5e67087551bdabed858fab5e0ef3 Mon Sep 17 00:00:00 2001 From: Khushiyant Date: Thu, 4 Jan 2024 00:26:10 +0530 Subject: [PATCH] docs: change image.history() return type to list (#3202) Fixes #3076. Signed-off-by: Khushiyant --- docker/api/image.py | 2 +- docker/models/images.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/api/image.py b/docker/api/image.py index 5e1466ec3..85109473b 100644 --- a/docker/api/image.py +++ b/docker/api/image.py @@ -47,7 +47,7 @@ def history(self, image): image (str): The image to show history for Returns: - (str): The history of the image + (list): The history of the image Raises: :py:class:`docker.errors.APIError` diff --git a/docker/models/images.py b/docker/models/images.py index b4777d8da..4f058d24d 100644 --- a/docker/models/images.py +++ b/docker/models/images.py @@ -51,7 +51,7 @@ def history(self): Show the history of an image. Returns: - (str): The history of the image. + (list): The history of the image. Raises: :py:class:`docker.errors.APIError`