diff --git a/docker/api/container.py b/docker/api/container.py index d1b870f9c2..bc4faebbd3 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -1221,7 +1221,7 @@ def top(self, container, ps_args=None): ps_args (str): An optional arguments passed to ps (e.g. ``aux``) Returns: - (str): The output of the top + (dict): The output of the top Raises: :py:class:`docker.errors.APIError` diff --git a/docker/models/containers.py b/docker/models/containers.py index 9c9e92c90f..9f7ae2f618 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -460,7 +460,7 @@ def top(self, **kwargs): ps_args (str): An optional arguments passed to ps (e.g. ``aux``) Returns: - (str): The output of the top + (dict): The output of the top Raises: :py:class:`docker.errors.APIError`