From b6464dbed92b14b2c61d5ee49805fce041a3e083 Mon Sep 17 00:00:00 2001 From: Bob Du Date: Wed, 10 Apr 2024 04:13:21 +0800 Subject: [PATCH] chore: fix return type docs for `container.logs()` (#2240) --- 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 1f153eeb7..d1b870f9c 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -844,7 +844,7 @@ def logs(self, container, stdout=True, stderr=True, stream=False, float (in fractional seconds) Returns: - (generator or str) + (generator of bytes or bytes) Raises: :py:class:`docker.errors.APIError` diff --git a/docker/models/containers.py b/docker/models/containers.py index 35d8b3141..4795523a1 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -313,7 +313,7 @@ def logs(self, **kwargs): float (in nanoseconds) Returns: - (generator or str): Logs from the container. + (generator of bytes or bytes): Logs from the container. Raises: :py:class:`docker.errors.APIError`