Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix return type docs for container.logs() #2240

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/api/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docker/models/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading