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

Wrong return type in docker.compose.run? #285

Closed
mdantonio opened this issue Nov 24, 2021 · 1 comment · Fixed by #289
Closed

Wrong return type in docker.compose.run? #285

mdantonio opened this issue Nov 24, 2021 · 1 comment · Fixed by #289
Labels
bug Something isn't working

Comments

@mdantonio
Copy link
Contributor

mdantonio commented Nov 24, 2021

The return type of compose.run is Union[str, python_on_whales.components.container.cli_wrapper.Container]
ma in case of stream it is returned stream_stdout_and_stderr... so the return type should be

Union[str, python_on_whales.components.container.cli_wrapper.Container, Iterable[Tuple[str, bytes]]], is it correct?

@gabrieldemarmiesse
Copy link
Owner

Yup! Seems you're right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants