Skip to content

Commit 576e47a

Browse files
authored
api: update return type of diff method (#3115)
Signed-off-by: John Yang <[email protected]>
1 parent 3178c8d commit 576e47a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/api/container.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ def diff(self, container):
678678
container (str): The container to diff
679679
680680
Returns:
681-
(str)
681+
(list) A list of dictionaries containing the attributes `Path`
682+
and `Kind`.
682683
683684
Raises:
684685
:py:class:`docker.errors.APIError`

docker/models/containers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ def diff(self):
141141
Inspect changes on a container's filesystem.
142142
143143
Returns:
144-
(str)
144+
(list) A list of dictionaries containing the attributes `Path`
145+
and `Kind`.
145146
146147
Raises:
147148
:py:class:`docker.errors.APIError`

0 commit comments

Comments
 (0)