From 53a398d8ec36c7a4a1078a59836f2859eb9317f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Fern=C3=A1ndez=20Iglesias?= Date: Sat, 22 Nov 2025 13:01:08 +0100 Subject: [PATCH] Fix return type in `Container.top()` docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roberto Fernández Iglesias --- docker/api/container.py | 2 +- docker/models/containers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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`