Skip to content

Commit

Permalink
docs: change image.history() return type to list (#3202)
Browse files Browse the repository at this point in the history
Fixes #3076.

Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
  • Loading branch information
Khushiyant authored Jan 3, 2024
1 parent 08956b5 commit eeb9ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/api/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docker/models/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit eeb9ea1

Please sign in to comment.