From 94a7f3e50573ad9e1b89a1a70753a18343ce6f04 Mon Sep 17 00:00:00 2001 From: Khushiyant Date: Sun, 17 Dec 2023 21:39:12 +0530 Subject: [PATCH] docs: change image.history() return type to list (#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`