Skip to content

Commit b6464db

Browse files
authored
chore: fix return type docs for container.logs() (#2240)
1 parent 9ad4bdd commit b6464db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/api/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def logs(self, container, stdout=True, stderr=True, stream=False,
844844
float (in fractional seconds)
845845
846846
Returns:
847-
(generator or str)
847+
(generator of bytes or bytes)
848848
849849
Raises:
850850
:py:class:`docker.errors.APIError`

docker/models/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def logs(self, **kwargs):
313313
float (in nanoseconds)
314314
315315
Returns:
316-
(generator or str): Logs from the container.
316+
(generator of bytes or bytes): Logs from the container.
317317
318318
Raises:
319319
:py:class:`docker.errors.APIError`

0 commit comments

Comments
 (0)